Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-1005

TextPane Cut and Paste always add a trailing newline to the text

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1, 2.0.5
    • Fix Version/s: None
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      All

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rwhitcomb Roger Lee Whitcomb
                Reporter:
                rwhitcomb Roger Lee Whitcomb
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: