Pasting adds extra newlines

XMLWordPrintable

    • Type: Bug
    • Resolution: Timed out
    • Priority: Medium
    • None
    • Affects Version/s: 5.2.3
    • Component/s: None
    • Environment:

      Client: - Mozilla Firefox v23.0.1
      Server: - Confluence v5.2.3, Standalone, JDK v.JRE6, O/S Win2K8 R2 server

      This affects regular editing but most easily demonstrated on a code block.

      To reproduce:

      1. Create a new page.
      2. Enter a lines of text including indented headers and paragraphs, e.g.:
        h1. Header One
            Paragraph One
            h2. Header Two
                Paragraph Two
            h2. Header Two Bee
                Paragraph Two Bee
        
      3. Position the insertion point at the start of h1. Header One.
      4. Press Shift+↓ five times to select lines Header One thru Paragraph Two Bee,
      5. Press Ctrl+C to copy selection to clipboard.
      6. Create Enter to create a new line below Paragraph Two Bee
      7. Position cursor to start of new line created below Paragraph Two Bee.
      8. Press Ctrl+V to paste the clipboard contents.

      Expected content

      h1. Header One
          Paragraph One
          h2. Header Two
              Paragraph Two
          h2. Header Two Bee
              Paragraph Two Bee
      h1. Header One
          Paragraph One
          h2. Header Two
              Paragraph Two
          h2. Header Two Bee
              Paragraph Two Bee
      

      Observed content

      h1. Header One
          Paragraph One
          h2. Header Two
              Paragraph Two
          h2. Header Two Bee
              Paragraph Two Bee
      h1. Header One
      
          Paragraph One
      
          h2. Header Two
      
      
              Paragraph Two
      
      
          h2. Header Two Bee
      
      
      
              Paragraph Two Bee
      
      
      
      
      

              Assignee:
              Steve Haffenden (Inactive)
              Reporter:
              Gesner Herard, Jr.
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: