Insert RTF from stream without line break

General TRichView support forum. Please post your questions here
Post Reply
mikesm
Posts: 1
Joined: Sun Feb 07, 2021 4:56 pm

Insert RTF from stream without line break

Post by mikesm »

Hello,
how do i insert rich text into richviewedit without inserting a new line at the end of the text. I use the InsertRTFFromStreamEd function, there is a new line after the inserted content.
Thanks
DannyLe
Posts: 1
Joined: Mon Mar 21, 2022 12:25 am

Re: Insert RTF from stream without line break

Post by DannyLe »

Hi,
Has there been any updates regrading this post? I believe I am running into the same issue.
Thank you
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Insert RTF from stream without line break

Post by Sergey Tkachenko »

Current behavior: insert the ending line break when inserting RTF as an editing operation; ignore it overwise.
It is hard-coded.
If you want to change it, modify the line in RVRTFProps.pas:
from

Code: Select all

    TRVRTFReader(Reader).ProcessFinalPar := EditFlag;
to

Code: Select all

    TRVRTFReader(Reader).ProcessFinalPar := False;
Post Reply