pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIVOT-1005) TextPane Cut, Copy and Paste always add a trailing newline to the text
Date Fri, 08 Sep 2017 19:26:00 GMT
Roger Whitcomb created PIVOT-1005:
-------------------------------------

             Summary: TextPane Cut, Copy 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.0.5, 2.1
         Environment: All
            Reporter: Roger Whitcomb
            Assignee: Roger Whitcomb
            Priority: Minor


If you select some text in a TextPane and Cut or Copy 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).



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

Mime
View raw message