1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

html: Normalize newlines

This commit is contained in:
Nick Wellnhofer
2024-09-08 19:16:12 +02:00
parent 341dc78f24
commit 17da54c522
12 changed files with 1441 additions and 1433 deletions

View File

@ -396,6 +396,12 @@ htmlCurrentChar(xmlParserCtxtPtr ctxt, int *len) {
*len = 0;
return(0);
}
} else if (c == 0x0D) {
if (cur[1] == 0x0A)
*len = 2;
else
*len = 1;
return(0x0A);
}
*len = 1;