1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

save: Always serialize CR as decimal "
"

We used to serialize CR as "
" when there was no encoding and we
weren't in an attribute. This was somewhat inconsistent.
This commit is contained in:
Nick Wellnhofer 2024-07-12 15:19:26 +02:00
parent 1cfc5b8089
commit 1b06708271

View File

@ -159,11 +159,7 @@ xmlSerializeText(xmlOutputBufferPtr buf, const xmlChar *string,
break;
case '\r':
if ((flags & XML_ESCAPE_NON_ASCII) &&
((flags & XML_ESCAPE_ATTR) == 0))
repl = "
";
else
repl = "
";
repl = "
";
replSize = 5;
break;