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

Vertical spacing removed on preview or publish after certain user operations

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      Summary

      Using some operations are causing vertical spacing between the macros to be stripped out as auto-cursor-target class is applied.

      Steps to Reproduce

      Steps to reproduce:

      1. Start creating a newpage
      2. Insert a block macro (e.g. the info macro)
      3. Insert another macro below the first (e.g. another info macro)
      4. In the space between the two macros, add a line break (in the editor DOM there are now two paragraphs between the macros - one with the auto-cursor-target class and one without)
      5. Click on preview and observe that there is vertical spacing between the macros
      6. Perform one of the "user operations" listed below - do this below the two macros to make the effect clearer to observe (in the editor DOM, both paragraphs between the macros now have the auto-cursor-target class applied)
      7. Click on preview and observe that the vertical spacing between the macros has been stripped out

      User operations known to cause this issue:

      • Wiki autoformatting (e.g. when you type h2. followed by a space to trigger heading formatting)
      • Cutting content (e.g. via cmd + v shortcut)

      This issue is only reproducible on instances that do not have the collaborative editing feature enabled.

      Expected Results

      The spaces are not modified

      Actual Results

      Vertical spacing between the macros were stripped out.

      Workaround

      Use operations on the top menu when available, such as selecting a text and making it title, instead of using h2..

      Attachments

        Issue Links

          Activity

            People

              wiwong wilson
              etom edith (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: