TMemo cannot handle Unix text (LF as line ending) correctly

后端 未结 2 1195
星月不相逢
星月不相逢 2021-01-16 18:02

TMemo cannot handle Unix enters (LF) correctly. Two lines separated with a LF are shown and treated as one line. I want to handle all possible text formating (Mac, Win, Unix

2条回答
  •  长情又很酷
    2021-01-16 18:32

    Just set the Lines.LineBreak property to LF:

    memo1.lines.LineBreak := #10;

    The default is #13#10 in Windows.

提交回复
热议问题