You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which character(s) are considered a line break? LF? Also CRLF? All linebreaks defined by Unicode? I'd not include additional Unciode line breaks such as U+2029 so you can still use them for linebreaks within a block (if you your editor supports entering it instead of a normal line break)
The text was updated successfully, but these errors were encountered:
My instinct is to define line breaks in terms of Unix and Windows ASCII newline escape sequences, so: \n and \r\n at the end of a line would be treated equivalently as a line break.
Combing through https://en.wikipedia.org/wiki/Newline, I notice JSON and JavaScript treat newlines differently. JSON allows LS and PS in strings, while ECMAScript prior to ES2019 treats them as newlines.
Anyone happen to have links on newline footguns? I'd love to do the most universal thing here, and I want to avoid spec'ing in an edge case that will bite later.
Which character(s) are considered a line break? LF? Also CRLF? All linebreaks defined by Unicode? I'd not include additional Unciode line breaks such as U+2029 so you can still use them for linebreaks within a block (if you your editor supports entering it instead of a normal line break)
The text was updated successfully, but these errors were encountered: