Different space characters when copy something from a code macro

Hi,

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

Stefan

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.
Josua

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.

Same problem here with Confluence 5.8.16. Client side: macOS 10.13.6 with Chrome 68.0.3440.106. Workaround is to switch to edit page and copy/paste from there. Annoying.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,127 views 2 6
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