Preserve multiple spaces in a row in JIRA issues

In a JIRA issue description, any number of sequential spaces will be collapsed into a single space.

E.g., "this          sentence has 10 spaces between the first two words"

I pressed the spacebar 10 times after typing "this" in that sentence. There should be 10 spaces between "this" and "sentence" but JIRA automatically collapses them into a single space.

None of the style options seems to preserve spaces. I am using JIRA v6.4.12 and the preformatted, paragraph quote, and block quote style options all collapse spaces.

I need to preserve spaces because I often paste stack traces into issue descriptions. The spaces for formatting make stack traces much easier to read.

Is there a way to force JIRA to display spaces as-is?

 

2 answers

1 accepted

Wrap the text in 

{noformat} OR {code}

tags, like so:

this          sentence has 10 spaces between the first two words using {noformat}
this          sentence has 10 spaces between the first two words using {code}

Indeed, it's not JIRA collapsing the spaces, it's HMTL standards being implemented by your browser.  The noformat and code macros tell JIRA to serve up non-breaking spaces instead of plain ones.

Pasting text still removes all extra spaces :(

Solved, switch from visual mode to text using the tab at the bottom of your comment

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

478 views 1 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot