After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659336 - Smart pasting
Smart pasting
Status: RESOLVED WONTFIX
Product: reinteract
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: reinteract-maint
reinteract-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2011-09-17 18:34 UTC by Owen Taylor
Modified: 2018-07-10 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2011-09-17 18:34:23 UTC
A couple of things that we should do:

* We should remove indentation shared by all lines in the paste and replace it with the indentation of the of the paste location. (of the cursor? the default indentation for that location? what about the case where the user didn't copy the indent on the first line " [a\n b\n]"?) 

* If the pasted text looks like doctests ... has lines in it starting with >>>, then we should convert back to Python code, stripping out the prompts and results. The tricky thing is that we shouldn't do that when pasting functions with doctests in the coments. One possibility for catching that is to try and tokenize the paste as Python first ... if it tokenizes, then it's not doctests.
Comment 1 André Klapper 2018-07-10 22:05:46 UTC
Reinteract is not under active development anymore and had its last code changes
in early 2012: http://git.fishsoup.net/cgit/reinteract/log/

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.