I have a string that contains Linux style line breaks. Linux style is #13 while Windows style is #13#10.
I would like to show this string in a TMemo. Looks like TMemo accepts only Windows style and does not treat #13 as a new line.
Is the only way for TMemo to format new lines is to insert #10, or can I somehow ask TMemo to act in Linux style?
Actually Linux style is #10, not #13 (#13 is MacOS style, AFAIK). Also, note that it's #10 and not #$10 (which is #16).
The easiest way would be to replace the line ends on load/save, ie. instead of
do
and instead of
do
Of course, you should replace the TEncoding.UTF8 with the appropriate encoding you want to use.