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

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9742f59cb9f7 jbane
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: