mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-08 23:22:04 +03:00
html: Fix line numbers with CRs
This commit is contained in:
@ -272,7 +272,7 @@ htmlNodeInfoPop(htmlParserCtxtPtr ctxt)
|
||||
|
||||
|
||||
#define NEXTL(l) do { \
|
||||
if (*(ctxt->input->cur) == '\n') { \
|
||||
if ((CUR == '\n') || ((CUR == '\r') && (NXT(1) == '\n'))) { \
|
||||
ctxt->input->line++; ctxt->input->col = 1; \
|
||||
} else ctxt->input->col++; \
|
||||
ctxt->input->cur += l; \
|
||||
|
Reference in New Issue
Block a user