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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

489 views 3 11
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