Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Different space characters when copy something from a code macro

Stefan Eike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 28, 2012

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

0 votes
RianA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 28, 2012

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

Stefan Eike
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 28, 2012

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

Rudie
Contributor
October 9, 2013

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

Like andrew.scott likes this
Gerrit Griebel September 4, 2018

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
TAGS
AUG Leaders

Atlassian Community Events