Original Reporter info from Mantis: Vali
-
Reporter name: Valentin Calinov
Original Reporter info from Mantis: Vali
- Reporter name: Valentin Calinov
Description:
The attached project contains the following code:
procedure TForm1.FormActivate(Sender: TObject);
begin
SynMemo1.Clear;
SynMemo1.Lines.Add('first line');
SynMemo1.Lines.Add('second line');
SynMemo1.Lines.Add('third line');
end;
procedure TForm1.SaveToFileButtonClick(Sender: TObject);
const
File_Name = 'test_file.txt';
begin
SynMemo1.Lines.SaveToFile(File_Name);
ShowMessage('Saved to file: ' + File_Name);
end;
Examine the content of the saved file (with a hex editor for example) and
you will see that lines end with #10 character.
I even try to use:
System.DefaultTextLineBreakStyle := tlbsCRLF;
in FormCreate event but with no success.
Mantis conversion info:
- Mantis ID: 17296
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 27840 (#475ceba0)
- Target version: 1.0.0
- LazTarget: 1.2