Creating a new editor page using whitespaces via API adds additional padding

XMLWordPrintable

    • 1
    • Minor
    • 0

      Issue Summary

      When creating Confluence pages via API, if the (storage) page's body has whitespaces between the formatting, it will add extra padding/whitespace that should not be visible at the UI level.

      This does not happen in the legacy editor.

      Steps to Reproduce

      1. Make sure to have access to add pages to a space in Confluence.
      2. Before creating the page, use a storage body that will contain whitespaces between the formatting. For example, the following (instead of a normal storage format minified):
       <ac:layout>
        <ac:layout-section ac:type="two_right_sidebar">
          <ac:layout-cell>
            <hr />
            <hr />
            
            <table class="relative-table" style="width: 100.0%;">
              <colgroup>
                <col style="width: 100.0%;" />
              </colgroup>
              <tbody>
                <tr>
                  <th>
                    <h4 class="auto-cursor-target">
                      <strong>Excerpt:&nbsp;</strong><em>title</em>
                    </h4>
                  </th>
                </tr>
              </tbody>
            </table>
            <p><br /></p>
      1. Use the API to create pages in this space using this storage body.

      Expected Results

      The whitespaces between the formatting should be ignored.

      Actual Results

      The page has extra padding added to it, needing the user to manually remove them.

      Workaround

      Minify the storage's body content. For example, compared with the content above:

      <ac:layout><ac:layout-sectionac:type="two_right_sidebar"><ac:layout-cell><hr/><hr/><tableclass="relative-table"style="width:100.0%;"><colgroup><colstyle="width:100.0%;"/></colgroup><tbody><tr><th><h4class="auto-cursor-target"><strong>Excerpt:&nbsp;</strong><em>title</em></h4></th></tr></tbody></table><p><br/></p>

            Assignee:
            Unassigned
            Reporter:
            Giuliano C.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: