Source Editor is adding superfluous spaces to my content

Jeremy Seely April 12, 2013

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.

Example:

$?<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
Dinesh Patel August 29, 2016

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.

0 votes
AhmadDanial
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events