Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29124

Pasting code into a code block in Confluence looses existing formatting of the code

      (I can not reopen the original issue CONF-28966, so I have to clone it)

      The issue is still happening with 4.3.7 version we installed over the weekend.

      Confluence looses indentation on copy-paste between code blocks.
      Steps to reproduce:

      1. Create a new document, create two code blocks. Insert indentated text in both of them:
        indentation
          works
            initially
      2. Double click in the first code block -> Confluence selects the entire contents of the block.
      3. Press Ctrl+C
      4. Double click in the second code block -> Confluence selects the entire contents of the block.
      5. Press Ctrl+V

      Expected result: the two code blocks are now indentical
      Actual result: the second code block has the same text, but all of the indentation has been lost (and the font is different as well)

      See the screenshot attached to the original bug CONF-28966 as well)

      Confluence version: 4.1.9
      Browser: Firefox 20
      OS: Ubuntu 12.04

            [CONFSERVER-29124] Pasting code into a code block in Confluence looses existing formatting of the code

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897829 ] New: CONFSERVER Bug Workflow v4 [ 2992377 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789745 ] New: JAC Bug Workflow v3 [ 2897829 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2720085 ] New: JAC Bug Workflow v2 [ 2789745 ]
            Owen made changes -
            Symptom Severity Original: Major [ 14431 ] New: Severity 2 - Major [ 15831 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2393643 ] New: JAC Bug Workflow [ 2720085 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2286953 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2393643 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2226403 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2286953 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2181083 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2226403 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1948222 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2181083 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1743180 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1948222 ]

              Unassigned Unassigned
              0177cdc22d93 Aleksey Vorona
              Affected customers:
              3 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: