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

Pasting text on the Code Macro or the No Format Macro removes leading white spaces

    XMLWordPrintable

Details

    Description

      Issue Summary

      If you copy text from another source (web, plain text editor, code editor) and then paste it into the Code Block or the No Format macro, the leading white spaces are removed. This effectively removes all code indentation.

      Steps to Reproduce

      1. Type some indented code in a plain text editor or code editor
      2. Copy the text to your clip board (right-click copy or CTRL+C/CMD+C)
      3. Create a page
      4. Insert the Code Block macro
      5. Paste the previously copied code

      Expected Results

      The copied text is pasted exactly as is.

      Actual Results

      All the leading spaces are removed, subsequently removing all code indentation.

      Workaround

      None. We need to manually indent the code.

      Attachments

        Issue Links

          Activity

            People

              nhoxuan Nam Ho
              drodrigues@atlassian.com Diego (Inactive)
              Votes:
              15 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: