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:
@ -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;
|
||||
|
Reference in New Issue
Block a user