Empty page layout cells are excluded from storage format

XMLWordPrintable

    • Severity 3 - Minor

      Steps to reproduce:

      1. Create a page with a 2 column layout
      2. In the left column, add a heading
      3. Save the page - observe that the heading is in the left column
      4. Edit the page, select all the content in the left column, cut and paste into the right column
      5. Save the page and observe that the content has not moved

      Workaround is to ensure that the left column has some content (e.g. a space).

      It turns out that empty page layout cells are excluded when the page is converted to storage format.

      Storage format for two-column layout with an empty cell (storage format is the same regardless of which column has content):

      <ac:layout><ac:layout-section ac:type="two_equal"><ac:layout-cell>
      <h1>Heading</h1>
      <p>Some content.</p>
      <p>&nbsp;</p></ac:layout-cell></ac:layout-section></ac:layout>
      

      Storage format when both columns contain content:

      <ac:layout><ac:layout-section ac:type="two_equal"><ac:layout-cell>
      <h1>Heading</h1>
      <p>Some content.</p>
      <p>&nbsp;</p></ac:layout-cell><ac:layout-cell>
      <p>&nbsp;</p></ac:layout-cell></ac:layout-section></ac:layout>
      

              Assignee:
              Unassigned
              Reporter:
              raymo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: