Preserve whitespaces when pasting monospace formatted text


I would like to paste some text preformatted with whitespaces, within which I want to highlight parts as bold.

I cannot highlight parts of the text within \{noformat} or \{code} sections, and when I paste the text as normal text then the whitespaces get lost upon pasting. This also happens when pasting within a paragraph that is formatted as monospaced.

How can I paste monospaced text while both retaining whitespaces and being able to highlight individual words within it afterwards?

3 answers

The fact that you cannot paste text into a performatted section without effluence stripping whitespace is embarrassing.

I think Jorg's point is that he would like to paste some text formatted with whitespace. when you do this normally all your whitespace gets removed, which is really annoying!

one option is to paste your text in as wiki text, this preserves the whitespace but removes any other formatting which is equally annoying.

any recommendations on how to solve this?

Hello Jörg, the functioning of the noformat and code macros is intended to strip the content within from any special formatting which includes font styling and text indentation, this behavior is the expected. In case you would like to highlight text within, you may use characters such as * asterisc or the # pound sign.


@Guilherme Nedel  'this behavior is the expected'...  No offense to you but I believe this to be a poor choice on Atlassian's part.  Many of my colleagues use the terminal as their primary source of data to exchange with other managers within Jira.  I often want to copy and paste data extracted from a tools output in the terminal into a jira ticket.  The stripping of spaces is annoying and I agree with @Dave Cole that Atlassian should realize this.

Like 6 people like this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,045 views 2 13
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