Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-98694

Nested Lists not Indented Correctly

XMLWordPrintable

      Problem

      Nested lists under specific usage of classes are not indenting incorrectly.

      Environment

      Reproduced in Confluence Data Center 8.5.15, 8.5.14

      Steps to Reproduce

      1. Create a New Confluence Page
      2. With Confluence Source Editor edit the page and apply the xml markup below
        <ul>
          <li>
            <ac:link>
              <ri:page ri:content-title="Sample Top"/>
              <ac:plain-text-link-body><![CDATA[Sample Top]]></ac:plain-text-link-body>
            </ac:link>
            <ul>
              <li>
                <ac:link>
                  <ri:page ri:content-title="Sample Above"/>
                  <ac:plain-text-link-body><![CDATA[Sample Above]]></ac:plain-text-link-body>
                </ac:link>
                <ul>
                  <li>
                    <span class="plugin_pagetree_children_span">Sample Above</span>
                  </li>
                  <li>
                    <span class="plugin_pagetree_children_span">Sample Above</span>
                  </li>
                </ul>
              </li>
              <li>
                <span class="plugin_pagetree_children_span"> <ac:link>
                    <ri:page ri:content-title="sample"/>
                    <ac:plain-text-link-body><![CDATA[Sample]]></ac:plain-text-link-body>
                  </ac:link> </span>
                <ul>
                  <li>Sample 1</li>
                  <li>Sample 2</li>
                  <li>Sample 3</li>
                </ul>
              </li>
              <li>
                <ac:link>
                  <ri:page ri:content-title="sample below"/>
                  <ac:plain-text-link-body><![CDATA[sample below]]></ac:plain-text-link-body>
                </ac:link>
                <ul>
                  <li>Sample Below 1</li>
                  <li>Sample Below 2</li>
                  <li>Sample Below 3</li>
                </ul>
              </li>
            </ul>
          </li>
        </ul>
      3. Apply the change: notice how the display in Edit mode works well
      4. Update the change and notice how the display in View mode is now broken

      Expected Results

      The operation should render the list correctly

      Actual Results

      The indentation is broken as per screenshot above

      Workaround

      From unit testing, the problem can especially appear when manually copying a list of pages coming from the Page Tree Macro into a new page.

      It appears removing the classes from the span e.g

      1. Install Confluence Source Editor plugin
      2. Edit the problematic page
      3. Access the Confluence Source Editor icon in the top right corner of the Page Edition <>
        1. Replace occurrences of <span class="plugin_pagetree_children_span">
        2. by <span>
      4. Apply the change and Update the Page

      The display now works back again

      Notes

      N/A

        1. image-2024-11-26-09-44-19-501.png
          52 kB
          Pascal Oberle
        2. image-2024-11-26-09-44-52-878.png
          62 kB
          Pascal Oberle
        3. image-2024-11-26-09-59-42-356.png
          60 kB
          Pascal Oberle

              Unassigned Unassigned
              2e857505f334 Pascal Oberle
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: