Ability to have newlines inside array?
See original GitHub issueHello guys.
I’ll be glad to see option “elements of array on new line” in close future.
Example:
Source:
{"explicitMods": ["Adds 7-15 Physical Damage", "+27 to Dexterity", "7% increased Fire Damage", "+16 to Evasion Rating", "+4 Life gained on Kill"]}
Current Output:
{
"explicitMods": ["Adds 7-15 Physical Damage", "+27 to Dexterity", "7% increased Fire Damage", "+16 to Evasion Rating", "+4 Life gained on Kill"]
}
What I want to see:
{
"explicitMods": [
"Adds 7-15 Physical Damage",
"+27 to Dexterity",
"7% increased Fire Damage",
"+16 to Evasion Rating",
"+4 Life gained on Kill"
]
}
Issue Analytics
- State:
- Created 10 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I make new line or break in array? - Stack Overflow
So you have to use <br/> to add an explicit line-break in HTML. However, now, in rails for safety any string will be...
Read more >How can I add a new line in string in array
Everything works fine. I just thinking about the possibility of formating the text. I tried to insert "NewLine" variable, Unicode for new line....
Read more >Guide on How to Add a New Line in JavaScript | Simplilearn
The newline character is \n in JavaScript and many other languages. All you need to do is add \n character whenever you require...
Read more >How to put string in array, split by new line in PHP
Given a string concatenated with several new line character. The task is to split that string and store them into array such that...
Read more >JavaScript Program to Replace All Line Breaks with <br>
I am Learning JavaScript.<br>JavaScript is fun.<br>JavaScript is easy. In the above example, the built- ...
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
+1
Also note, that the input below maps to the same output:
But this also gets you:
What I think would make sense is this: