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

Legacy Page Conversion: Check for <br></p> tags to avoid double line breaks

XMLWordPrintable

      Blank Line Appears between Numbered Steps:

      When converting a Legacy Page some old elements may be removed while others are not, after conversion Paragraph or <p></p> tags are wrapped around text which causes a line break. However, in instances where a <br> tag is present, this can have the undesired effect of adding an extra line break when next to a </p>.

      This is a request entails checking for potentially erroneous <br> tags that would cause 2 lines instead of the 1 line in the original legacy page, and give the user the option to preview/convert the page with these stripped/removed from the legacy page where new <p></p> tags would get placed.

      Original Storage Format:

      <ol>
      <li>This is some text</li>
      <li><strong>This is some text<br /></strong><span><span>this is some text<br /></span></span></li>
      <li>This is some text</li>
      <li>This is some text</li></ol>
      

      Converted Storage Format:

      <ol start="1">
      <li>
      <p>This is some text</p></li>
      <li>
      <p><strong>This is some text</strong><br />this is some text<br /></p></li>
      <li>
      <p>This is some text</p></li>
      <li>
      <p>This is some text</p></li></ol>
      



        1. 1-Legacy-Before-Conversion.png
          45 kB
          Johnny E [Atlassian Support]
        2. 3-Legacy-After-Conversion.png
          46 kB
          Johnny E [Atlassian Support]
        3. 2-Legacy-Before-Conversion-Preview.png
          28 kB
          Johnny E [Atlassian Support]

              85453917d6ec Howard Ng
              05590c1391fa Johnny E [Atlassian Support] (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: