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

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

      We are currently running Confluence 4.0.4 so if this is fixed in a later version great, let me know.

      If I take code blocks from a text editor and paste it into a code block in confluence it looses all of the existing formatting. This is extremely frustrating when dealing with things like JSON or XML fragments which can be fairly large and require a lot of reformatting to make them presentable. When I am pasting into a code block I expect the contents to be placed into the editor without stripping existing formatting.

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

            antekone made changes -
            Comment [ I don't think it will ever be fixed. The code not only loses formatting, but sometimes it's modified by Confluence on save; this means that some processing is going on, and the lost of formatting is just a side effect of it. ]
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2893748 ] New: CONFSERVER Bug Workflow v4 [ 2985941 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2775375 ] New: JAC Bug Workflow v3 [ 2893748 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2710552 ] New: JAC Bug Workflow v2 [ 2775375 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2375826 ] New: JAC Bug Workflow [ 2710552 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2262711 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2375826 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2212556 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2262711 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2160022 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2212556 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1915897 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2160022 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1721642 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1915897 ]

              Unassigned Unassigned
              5986d827282d Jarom
              Affected customers:
              0 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: