It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

2 votes
Answer 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}
Nic Brough Community Leader Sep 17, 2016

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 :(

Like Zachary Kanfer likes this

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

At comments {noformat} or {code} doesn't work =\

Anyone know how to do it at comments?

{noformat}

    Text

{noformat}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,085 views 7 0
Join discussion

Community Events

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

Events near you