Source Editor is adding superfluous spaces to my content

I am entering content into the rich text editor which uses different text colors and has brackets (it's documentation for programming tokens). As soon as I open up the Source Editor and save, a whole bunch of spaces appear in between all the elements of my content.


$?<conditional A>[<true text>]?<conditional B>[<else if true text>][<else if false text>]

gets turned into:

$?<conditional A>[ <true text> ]?<conditional B>[ <else if true text> ][ <else if false text> ]

as soon as I hit "Apply" in the Source Editor. The source code is automatically turning into:

&lt;strong&gt;$?&lt;/strong&gt; &lt;em&gt;&amp;lt;conditional A&amp;gt;&lt;/em&gt; &lt;strong&gt;[&lt;/strong&gt; &lt;span style="color: rgb(0,0,255);"&gt; &lt;em&gt;&amp;lt;true text&amp;gt;&lt;/em&gt; &lt;/span&gt; &lt;strong&gt;]?&lt;/strong&gt; &lt;em&gt;&amp;lt;conditional B&amp;gt;&lt;/em&gt; &lt;strong&gt;[&lt;/strong&gt; &lt;span style="color: rgb(0,204,255);"&gt; &lt;em&gt;&amp;lt;else if true text&amp;gt;&lt;/em&gt; &lt;/span&gt; &lt;strong&gt;][&lt;/strong&gt; &lt;span style="color: rgb(255,0,0);"&gt; &lt;em&gt;&amp;lt;else if false text&amp;gt;&lt;/em&gt; &lt;/span&gt; &lt;strong&gt;]&lt;/strong&gt;

with all those spaces in there.

How do I stop this from happening?

Confluence version: 4.3

Source Editor version: 1.0.6

Browsers: Chrome, Firefox

2 answers

0 votes
Ahmad Danial Atlassian Team Feb 17, 2014

Hey there, Jeremy.

I noticed that it has been a while since you received any response here. Therefore, I would recommend you to contact the plugin vendor to get your query answered.

Hope this helps and good luck.

Our team at Mohamicorp revamped the source editor while using it internally, and we're making it public as Source Editor for Confluence. It does not perform the server-side code beautification that the original plugin does, instead providing a more bug-free Beautify option in the editor.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

440 views 8 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you