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 660321 - Preserve line endings
Preserve line endings
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-28 03:41 UTC by Owen Taylor
Modified: 2018-07-10 22:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2011-09-28 03:41:10 UTC
[ Originally filed as http://www.reinteract.org/trac/ticket/40 ]

The big rewrite of shell_buffer.py that I'm about to commit switches the canonical in-memory representation of a worksheet to a list of lines, with the line endings stripped from each line. (Having to worry about the line ending positions just makes everything harder.)

However, in the current version of the patch this results in a load-save cycle on a worksheet converting it to Unix line endings.

Possible Improvements:

* Autodetect the line-endings in a worksheet on load, preserve them on save.

    If mixed line endings are encountered, warn the user and let them select what they want. 

* Keep a parallel array to the lines array with the line endings for each line. But this is a lot of work to support something (files with mixed line endings) that is inherently evil.
Comment 1 André Klapper 2018-07-10 22:05:55 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.