Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.13.5, 7.13.7, 7.13.8, 7.13.9
-
None
-
2
-
Severity 2 - Major
-
2
-
Description
Problem
When changing the title of an expand macro that contains a fixed width table, everything after the fixed width table is removed. Everything before the table remains.
Steps to Reproduce
- Create a page with a single expand macro with the title “name”. Within the macro is a line of text, then a fixed width table, and then another line of text:
- Source code of the page:
<p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="fee82f70-a916-4247-a831-0cdf0fdf5a46" ac:name="expand" ac:schema-version="1"> <ac:parameter ac:name="title">name</ac:parameter> <ac:rich-text-body> <p class="auto-cursor-target">This text is <strong>before</strong> a fixed width table in an expand macro, <strong>this will remain if you change the title of the expand macro.</strong> </p> <table class="wrapped fixed-table"> <colgroup> <col style="width: 89.0px;"/> <col style="width: 128.0px;"/> </colgroup> <tbody> <tr> <th>Test table</th> <th>Test table 1</th> </tr> <tr> <td>Yes</td> <td>No</td> </tr> </tbody> </table> <p class="auto-cursor-target">This text is <strong>after</strong> a fixed width table in an expand macro, <strong>this will be removed if you change the title of the expand macro.</strong> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p>
- Change the title of the expand macro from “name” to “name1”:
- Save the name change, but do not update the page and the text below the fixed width table is removed:
- At this point the source code shows that the text is still there but is wrapped in <div class="synchrony-exclude resize-width-holder" style="width: 258.0px;"> . . . . . </div>
<p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="6d28f791-b82f-4ebf-822c-82d9cc564189" ac:name="expand" ac:schema-version="1"> <ac:parameter ac:name="title">name1</ac:parameter> <ac:rich-text-body> <p class="auto-cursor-target">This text is <strong>before</strong> a fixed width table in an expand macro, <strong>this will remain if you change the title of the expand macro.</strong> </p> <table class="wrapped fixed-table"> <colgroup> <col style="width: 89.0px;"/> <col style="width: 128.0px;"/> </colgroup> <tbody> <tr> <th>Test table</th> <th>Test table 1</th> </tr> <tr> <td>Yes</td> <td>No</td> </tr> </tbody> </table> <div class="synchrony-exclude resize-width-holder" style="width: 258.0px;"> <p class="auto-cursor-target">This text is <strong>after</strong> a fixed width table in an expand macro, <strong>this will be removed if you change the title of the expand macro.</strong> </p> </div> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p>
- Click update and the lines are still missing:
- Then edit the page again and check the source code again, everything that was wrapped in the <div class="synchrony-exclude resize-width-holder" style="width: 258.0px;"> . . . . . </div> has now been permanently removed:
<p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="9db49b76-a8c2-4462-a77b-f2a839174477" ac:name="expand" ac:schema-version="1"> <ac:parameter ac:name="title">name1</ac:parameter> <ac:rich-text-body> <p class="auto-cursor-target">This text is <strong>before</strong> a fixed width table in an expand macro, <strong>this will remain if you change the title of the expand macro.</strong> </p> <table class="wrapped fixed-table"> <colgroup> <col style="width: 89.0px;"/> <col style="width: 128.0px;"/> </colgroup> <tbody> <tr> <th>Test table</th> <th>Test table 1</th> </tr> <tr> <td>Yes</td> <td>No</td> </tr> </tbody> </table> <p class="auto-cursor-target"> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p>
Expected Results
The name of the expand macro can be changed without affecting any of the contents when a fixed width table is included in the macro.
Actual Results
Anything after the fixed width table in the expand macro is removed.
Workaround
Use responsive tables rather than fixed width in expand macros.