Different space characters when copy something from a code macro


when you copy something of a code-macro, you have to options:

  • Select a text with the cursor
  • Double click into the code-block

The problem is, that the space-character seems to be different. I don't have problems yet, but I'm afraid of this resulting in issues, e.g. when using Python code snippets. Is it possible to disable the double-click-selects-the-entire-block-feature?

Best regards


1 answer

Hi Stefan,

It might be how the code was pasted into code macro that caused the issue. However, it might be a bug as well. It would be good if you provide the exact steps so that we could raise a bug report regarding this. Nevertheless, please do make sure that the spacing when it saved as code macro is not similar when it's being extracted from there.

Hope it helps.

Hi Josua,

it can be reproduced easily.

  1. Create a new code-macro somewhere on a page.
  2. Type in something. Use some spaces at the beginning of a line.
  3. Save the page.
  4. Select the text in view mode with your cursor.
  5. Copy and paste it to an editor (e. g. Notepad++).
    The result looks like this:
  6. Now, double click on the macro, like recommended in the tooltip.

  7. Paste it to the editor.
  8. The result looks like this:

    You see the diffence: The dots are missing at the beginning of the line.

I use Notepad++ with UTF8 and have activated the setting "show all characters".

Still is. Incredibly annoying. Please fix. Selecting code is useless if spaces aren't spaces.

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
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

384 views 17 9
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