How to indent content with new page format (2019)

While attempting to help maintain a community project which helps publish documents onto Confluence, I noticed that pages appear to be styled different. From what I gather, Atlassian has started to introduce various styling changes to Confluence Cloud and (I assume) will be introduced in the next Confluence v7 stable release.

One of the issues (of many) observed is that Atlassian appears to have dropped the ability to indent content from their WYSWYG editor. I do see numerous individuals mentioning this limitation in various issues (which may or may not be resolved; e.g. CONFCLOUD-65755), but my current focus right now is capabilities provided via storage-format. From what I can tell (when publishing to new Confluence Cloud pages), the style attribute on elements appear to be sanitized more aggressively now (if not completely). Before, the following minimized example would show expected indentation of content:

<div style="margin-left: 30px;">
    test1
    <div style="margin-left: 30px;">test2</div>
</div>
<div style="margin-left: 30px;">test3</div>

When attempting to publish the same content now, styling appears to be removed in the final rendering. The following shows a rendered result of what was working before to what happens now:


I am curious to know if anyone knows of a workaround related to this or know if capabilities such as style overrides are planned to be permanently removed? I am a bit bewildered on how to deal with this new limitation.

1 Like