Description
Because of the way the "getSelectedText()" method is implemented it will construct a separate document containing an enclosing paragraph and then put the selected range of stuff into that document. But for simple text, that enclosing paragraph causes the PlainTextSerializer to output a line break. Thus the selected text result will always end in a newline even if the selection does not encompass the end of the line. This differs from the result of "getText(...)" using the selection bounds.
Attachments
Attachments
Issue Links
- Blocked
-
PIVOT-1005 TextPane Cut and Paste always add a trailing newline to the text
- Open