Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
7.7.3, 7.7.4
-
None
-
1
-
Severity 2 - Major
-
Description
Problem
Copy and pasted JSON isn't formatted correctly when inserted into the Code Block Macro. The JSON loses it's formatting and doesn't retain the correct structure once pasted into the block.
Environment
Confluence 7.7.3 >
Steps to Reproduce
- Add a code block macro to a page
- Copy and paste a block of formatted JSON into the macro:
{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } }
Expected Results
We expect that the JSON will retain it's formatting, as in the example box above.
Actual Results
Instead the code block strips the white. space from the JSON strips all white space resulting in the something like the following:
{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } }
Workaround
(Add a workaround, if available)
Notes
Attachments
Issue Links
- duplicates
-
CONFSERVER-60296 Pasting text on the Code Macro or the No Format Macro removes leading white spaces
- Closed
- mentioned in
-
Page Loading...