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

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 3

      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.

            Assignee:
            Nam Ho
            Reporter:
            Diego (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: