1
0
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:
Nick Wellnhofer
2024-09-12 01:40:07 +02:00
parent be874d7831
commit 575be6c1f1
4 changed files with 39 additions and 39 deletions

View File

@ -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; \