-
Bug
-
Resolution: Fixed
-
Low
-
4
-
Severity 3 - Minor
-
Issue Summary
In multiple different examples, it looks like the inclusion or result of <p><br /></p> is causing 2 extra lines where it's undesired, in some cases, it looks like these may be getting added in arbitrarily at the end of the documents but I suspect those examples may be intended behavior.
Steps to Reproduce
Examples:
Page with No Extra Line at Bottom:
If I create a new page and enter one line of text without pressing enter, publish the page, and then check it via the Storage Format I see:
<p>This is a page with one line and no returns</p> <p><br /></p>
It looks like the act of publishing the page even without conversion adds in "<p><br /></p>". Then after conversion, I can use my arrow key to press down and I have a few extra lines. I click update without modifying the page and I see this in the Storage Format:
<p>This is a page with one line and no returns</p> <p><br /></p>
Visually they look the same here but if I edit the page, I can still arrow down as if there were multiple returns/new lines
One Extra Line at Bottom in Legacy Editor:
In this example if I look at the end of the document:
<li><strong>This is bold text.</strong> this is some text</li></ul>
When I edit the page, I don't see any cursor/blinking lines that I can arrow down to with the keyboard for the above. When I look at the converted page:
<li>
<p><strong>This is bold text.</strong> this is some text</p></li></ul>
<p><br /></p>
One Extra Line Between Paragraphs 1 and 2 in Legacy Editor
Original:
<p>This is the first paragraph.</p> <p><br /></p> <p>This is the second paragraph.</p>
Converted:
<p>This is the first paragraph.</p> <p><br /></p> <p>When you set up preferred shares processing:</p>
In the converted result there are two lines, this is due to the P and BR tag. However, in the Original, it has the same '<p><br /></p>' but it's being treated as one line.
Panel Macro has blank lines above or below
I inserted 2 Panel Macros in the Legacy editor:
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="5c87312d-3665-47e5-bef4-dcec30e0e626"><ac:rich-text-body> <p><br /></p></ac:rich-text-body></ac:structured-macro> <p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="e9d94bce-ad11-4d7d-aaaa-26e30bb129a9"><ac:rich-text-body> <p><br /></p></ac:rich-text-body></ac:structured-macro> <p><br /></p>
Then I converted the page and there is now an extra line/space where there wasn't before.
<p><br /></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="33faaac5-b19b-42ed-a45b-b98bf19c5761"><ac:rich-text-body> <p><br /></p></ac:rich-text-body></ac:structured-macro> <p><br /></p><ac:structured-macro ac:name="panel" ac:schema-version="1" ac:macro-id="c9550ac2-f37b-40cf-b7b0-92b6fd454af1"><ac:rich-text-body> <p><br /></p></ac:rich-text-body></ac:structured-macro> <p><br /></p>
Expected Results
Page converts and returns the same visual line breaking as in the legacy page
Actual Results
Extra line breaks appear breaking the original formatting/visuals/aesthetic of the page
Workaround
Manually adjust/fix formatting after conversion where possible
- relates to
-
CONFCLOUD-76553 Legacy Page Conversion: Check for <br></p> tags to avoid double line breaks
-
- Closed
-
-
CONFCLOUD-81729 Elements Fail to Render Correctly After Converting Pages with Single-Column Layouts from Legacy to New Editor
-
- Closed
-
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...