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
The parser is unaware of system-dependent newlines such as CRLF (Windows) or CR (classic MacOS).
My suggestion is, to document this behavior, rather than to change the whole processing. Anyone having issues with that (like we) could then just pre-process the BBCode to normalize newlines.
Test matrix:
Input
Parsed
A\nB
["A", "\n", "B"]
A\r\nB
["A\r", "\n", "B"]
A\rB
["A\rB"]
If instead supporting other line separators, helper methods such as isEOL must be adapted, too.
The text was updated successfully, but these errors were encountered:
The parser is unaware of system-dependent newlines such as CRLF (Windows) or CR (classic MacOS).
My suggestion is, to document this behavior, rather than to change the whole processing. Anyone having issues with that (like we) could then just pre-process the BBCode to normalize newlines.
Test matrix:
A\nB
["A", "\n", "B"]
A\r\nB
["A\r", "\n", "B"]
A\rB
["A\rB"]
If instead supporting other line separators, helper methods such as
isEOL
must be adapted, too.The text was updated successfully, but these errors were encountered: