Code Block Macro Inserts Spaces on Blank Lines Breaking Python Code Copy/Paste into Shell

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      1. Create a new Code Block Macro on some page and add a couple Python functions with blank lines between them (where the line is just a carriage return or line feed or both).

      2. Save the page.

      3. Copy the Python code out of the block on the page in a normal view.

      4. The copied code has extra spaces (nbsp) on the blank lines. This causes issues when pasting into a Python interactive shell.

      This is reproducible on Data Center: yes

              Assignee:
              Unassigned
              Reporter:
              jbane
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: