Blank Line on Save

Public forum for discussing TScaleRichView (shareware addon to TRichView providing WYSIWYG editing)
Post Reply
tiagosis
Posts: 19
Joined: Thu Apr 13, 2017 5:34 pm

Blank Line on Save

Post by tiagosis » Sat Jun 30, 2018 12:51 pm

Hello, I use SRichViewEdit to save a RTF document the document is saving with an empty line at the top for each time the document is saved what do I avoid these lines?

Sergey Tkachenko
Site Admin
Posts: 14170
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Blank Line on Save

Post by Sergey Tkachenko » Sat Jun 30, 2018 12:56 pm

I believe this empty line is added not on RTF save, but on document generation or loading.
Each editor initially contains one empty text line. To remove it (before document generation or loading RTF file) call SRichViewEdit1.Clear;

tiagosis
Posts: 19
Joined: Thu Apr 13, 2017 5:34 pm

Re: Blank Line on Save

Post by tiagosis » Sat Jun 30, 2018 2:03 pm

solved the problem

Post Reply