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

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

      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

              Unassigned Unassigned
              9742f59cb9f7 jbane
              Affected customers:
              6 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated: