You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Whitcomb (JIRA)" <ji...@apache.org> on 2017/09/09 00:08:00 UTC

[jira] [Commented] (PIVOT-1005) TextPane Cut and Paste always add a trailing newline to the text

    [ https://issues.apache.org/jira/browse/PIVOT-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159546#comment-16159546 ] 

Roger Whitcomb commented on PIVOT-1005:
---------------------------------------

Fixed most problems with both cut and paste:
Sending        wtk\src\org\apache\pivot\wtk\TextPane.java
Transmitting file data .done
Committing transaction...
Committed revision 1807849.

Still seeing some problems with up/down arrows after paste (not sure if these are new or not).  Also problems with undo/redo.

> TextPane Cut and Paste always add a trailing newline to the text
> ----------------------------------------------------------------
>
>                 Key: PIVOT-1005
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1005
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 2.1, 2.0.5
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>            Priority: Minor
>
> If you select some text in a TextPane and Cut it, then paste into another text editor you will see that the text has a trailing newline, regardless of whether the selected text included the end of line or not.  Similarly, select some random text in another application and Paste into a TextPane and a new paragraph will always be entered, regardless of whether the original text had a newline or not.
> This is due to PlainTextSerializer (used for all these operations) always creates a Document, which always has the text enclosed in a Paragraph (which implicitly contains a newline at the end).
> Note: Copy does not have the same problem (any more).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)