Copy text with soft returns pastes as hard returns

General TRichView support forum. Please post your questions here
Post Reply
chris.clark
Posts: 7
Joined: Sat Jun 20, 2015 7:03 am

Copy text with soft returns pastes as hard returns

Post by chris.clark »

Hi. I have text sections that have soft returns (Shift + Enter) in them. When I copy and paste the pasted text has hard returns in them (Enter).

Using drag + drop text within the editor (TRichViewEdit) also produces the same result.

This is particularly noticeable because paragraph style has a significant space after so it is quite visible.

Is there a flag or process that I'm missing? I've tried processing the pasted text myself but InsertText doesn't want to keep the trailing soft return and I can't seem to find the correct section to set .BR on (if that is even the correct place).
e.g. FEditor.GetItem(FEditor.CurItemNo + C).BR := True;
It has no effect anyway.

It sounds like inserting multiline text which has been mentioned elsewhere but I can't track down a demo example that makes it simple or appears to be relevant to the current trial (though it may be just I can't find the right unit/demo).
chris.clark
Posts: 7
Joined: Sat Jun 20, 2015 7:03 am

Post by chris.clark »

I think I identified why it wasn't working. The copy option "rvoAutoCopyRVF" needed to be set which makes sense so that it picks up the additional meta info about the items rather than just plain text.
Post Reply