Copy text with soft returns pastes as hard returns
Posted: Sat Jul 04, 2015 11:28 am
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).
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).