Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
When users cut and paste text within the Code Snippet, the newline character is unexpectedly removed. This results in concatenated lines where there should be distinct lines.
Steps to Reproduce
- Create a Confluence Cloud Page and go to edit mode.
- Insert a Code Snippet element.
- Type in line 1 "abc", in line 2 "def", and in line 3 "ghi".
- Move the cursor to the end of line 2, behind the "f".
- Press Shift and Left Arrow 4 times to select "def" and the hidden newline character.
- Press Ctrl+X to cut the selection. The resulting text should be "line 1 abc, line 2 ghi".
- Insert the cut-out part after "abc".
- The newline character is unexpectedly removed, resulting in "line 1 abcdef line 2 ghi".
Expected Results
After cutting and pasting the text in step 7, the newline character should be retained, resulting in "line 1 abc def line 2 ghi".
Actual Results
After cutting and pasting the text in step 7, the newline character is not retained
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available