Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#83 End-of-line (EOL) styles always default to LF

TextTrix-0.9.5
fixed
nobody
None
v.0.9.4
1
2012-08-02
2012-07-23
David Young
No

Files can be read independent of their EOL style, but they are always saved as with LF styles. This can be a problem for files that are meant to be read in Windows editors such as Notepad, where all the lines will appear as one.

[Issue report ported from Trac.]

Discussion

  • David Young
    David Young
    2012-07-23

    EOL characters are now read through BufferedReader.print (rather than println) function. The resulting text is still read into the file with standard LF newlines via replacement of any CRLF newlines, but the original EOL is recorded in the TextPad. When the file is saved, the text to be saved is re-converted to its original EOL style.

    As a side-effect, this fix also prevents auto-saving from updating the EOL style and timestamps of all files currently opened in the editor regardless of saved state.

    • status: open --> pending
     
  • David Young
    David Young
    2012-08-02

    • status: pending --> fixed