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
Expected behavior
I expect the parser to recognize the \r\n sequence as a whitespace character to be trimmed. The TOML spec:
For writing long strings without introducing extraneous whitespace, use a "line ending backslash". When the last non-whitespace character on a line is an unescaped \, it will be trimmed along with all whitespace (including newlines) up to the next non-whitespace character or closing delimiter.
Describe the bug
go-toml
returns an error on a multiline basic string with an unescaped backslash followed by CRLF. This sequence should be valid.To Reproduce
https://go.dev/play/p/3aIPpYSTpxO
Expected behavior
I expect the parser to recognize the
\r\n
sequence as a whitespace character to be trimmed. The TOML spec:Versions
Additional context
Also submitted a PR to
toml-test
to include this case: toml-lang/toml-test#105Found while doing differential fuzzing against
toml.dart
. 🎯The text was updated successfully, but these errors were encountered: