Page 1 of 1

Copy text with soft returns pastes as hard returns

Posted: Sat Jul 04, 2015 11:28 am
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).

Posted: Sun Jul 05, 2015 8:55 am
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.