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
Here is a sample program that uses a custom marshaller for string that just call into the regular yaml.Marshall function, so I would expect identical results as if not using a custom marshaller at all:
So when the custom marshaller is used, some control character (\a and \t) are getting a double-escape.
Version Variables
Go version: 1.23.1
go-yaml's Version: 1.12.0
The text was updated successfully, but these errors were encountered:
jandubois
changed the title
Custom marshalling does some incorrect escaping of some control characters
Custom marshalling does incorrect escaping of some control characters
Sep 28, 2024
Here is a sample program that uses a custom marshaller for
string
that just call into the regularyaml.Marshall
function, so I would expect identical results as if not using a custom marshaller at all:The results are:
So when the custom marshaller is used, some control character (
\a
and\t
) are getting a double-escape.Version Variables
Go version: 1.23.1
go-yaml's Version: 1.12.0
The text was updated successfully, but these errors were encountered: