Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-53975

Code macro does not maintain all empty lines when copy and pasted

    XMLWordPrintable

Details

    Description

      Summary

      Recently, this bug was fixed:
      https://jira.atlassian.com/browse/CONF-28582

      This is a problem where Confluence would remove empty lines when copying/pasting code in the Code Macro.

      However, the fix version is still causing some empty lines to be removed after saving.

      This case specifically, when we add 'n' lines in a row to copied/pasted text, only 'n-1' are preserved, one is deleted.

      Environment

      Tested in Mac OS.

      Steps to Reproduce

      1. Open a text editor and write:
        Line 1
        Line 2
        
      2. Copy it and paste in a code macro in a Confluence page
      3. Remove all empty lines added (because for some reason many are added)
      4. Save it (no empty lines exist)
      5. Edit the page again
      6. Add an empty line between Line 1 and Line 2
      7. Save it

      Expected Results

      The empty line is preserved.

      Actual Results

      The empty line disappears.

      Notes

      If you add several lines in a row, all but one is preserved.

      Workaround

      If you want 'n' empty lines, add 'n+1'.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jsilveira Jaime S
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: