I recently switched to Conflunce Cloud and now when I update page through API all whitespaces that exist in storage representation I am sending to Confluence are preserved in the page.
Here's an example. I send this page content through API:
<p>word3<ac:structured-macro ac:name="anchor" ac:schema-version="1"><ac:parameter ac:name="">myanchor</ac:parameter></ac:structured-macro>word4</p>
I expect content inside <p> block to be treated as HTML, so all whitespace formatting should be collapsed. This is the content I expect to see on the page:
word1 word2 word3
But all whitespaces are preserved and this is what I get:
It added spaces before word1, word2, word3 and newlines after them. It also added a space on the place of invisible anchor macro.
This is very tedious to clean up while preparing the page content to send. Is it possible to turn off such strange whitespace behavior? I never had such problem when working with Confluence Server.
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events