aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'HTMLparser.c')
-rw-r--r--HTMLparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/HTMLparser.c b/HTMLparser.c
index 4d0fe27e..5e44d7ad 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -4134,6 +4134,7 @@ htmlParseDocument(htmlParserCtxtPtr ctxt) {
return(XML_ERR_INTERNAL_ERROR);
}
ctxt->html = 1;
+ ctxt->linenumbers = 1;
GROW;
/*
* SAX: beginning of the document processing.