Details
-
Bug
-
Resolution: Fixed
-
Medium
-
7.7.2, 7.7.3, 7.7.4, 7.8.1, 7.8.3
-
3
-
Severity 3 - Minor
-
3
-
Description
Issue Summary
If you copy text from another source (web, plain text editor, code editor) and then paste it into the Code Block or the No Format macro, the leading white spaces are removed. This effectively removes all code indentation.
Steps to Reproduce
- Type some indented code in a plain text editor or code editor
- Copy the text to your clip board (right-click copy or CTRL+C/CMD+C)
- Create a page
- Insert the Code Block macro
- Paste the previously copied code
Expected Results
The copied text is pasted exactly as is.
Actual Results
All the leading spaces are removed, subsequently removing all code indentation.
Workaround
None. We need to manually indent the code.
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-60329 Code Block Macro doesn't retain JSON formatting in Confluence 7.7.3 and above
- Closed
- relates to
-
CONFSERVER-60316 Pasting code from the Code Block Macro in edit mode removes line break
- Short Term Backlog
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...