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

This widget could not be displayed.

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?

This widget could not be displayed.

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

This widget could not be displayed.

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 very poor choice on Atlassian's part.  Most of my colleagues use the terminal as their primary source of data to exchange with other managers within Jira.  I am constantly wanting to copy and paste data extracted from a tools output in the terminal into a jira ticket.  The stripping of spaces is extremely annoying and I agree with @Dave Cole that Atlassian should realize this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

505 views 7 6
Join discussion

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