TMemo does not handle line breaks well.
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
The TMemo has problems with non-native EOLN symbols. The EOLN is different for different OSes: Macintosh computers use CR ($0D), UNIX computers use LF ($0A) and DOS/Windows computers use CR/LF pairs ($0D0A). The problems can be seen by running
Memo1.Lines.LoadFromFile(lFileName);
on either Lazarus for Windows. Things work well on Lazarus for Linux and Lazarus for OSX.
On Windows (0.9.29 svn 23531), only Windows EOLN symbols are recognized: otherwise the text is loaded as a single line (wrapping if that is the TMemo's property).
Mantis conversion info:
- Mantis ID: 17000
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 29915 (#7fe0a34e)
- Target version: 1.0