display new line character
See original GitHub issueIf I have an object like {key: "line1\nline2"}
when viewing the json, the new line characters dissapear
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Text Editor which shows \r\n? [closed] - Stack Overflow
To use Notepad++ for this, open the View menu, open the Show Symbols slide out, and select either "Show all characters" or "Show...
Read more >EOL or End of Line or newline ascii character
Open any text file and click on the pilcrow (¶) button. Notepad++ will show all of the characters with newline characters in either...
Read more >Python New Line and How to Python Print Without a Newline
The new line character in Python is \n . It is used to indicate the end of a line of text. You can...
Read more >Create newline character - MATLAB newline - MathWorks
Create a newline character with newline and concatenate it onto a character vector. ... Although chr displays on two lines, chr is a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have been testing this and so far this has worked swimmingly for all the use cases I’ve tested it on:
The only downside I see is that the long lines overflow and need scrolling as they no longer wrap.
There doesn’t need to be any modifications to the codebase or a custom theme supplied as it is just as quick and simple as adding an option if there was one added. We may ask the dev team to edit the themes to do this by default but not sure how big the need is outside of the 3 of us on this issue.
With some more googling, we can do that via CSS:
.string-value { white-space: pre; }
https://www.w3.org/TR/CSS21/text.html#propdef-white-space via https://stackoverflow.com/questions/219219/how-to-change-a-span-to-look-like-a-pre-with-css