From 4d3e2da7f862d37e0f9adbd476531f43e02f495d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 15 May 2009 17:55:45 +0200 Subject: * HTMLparser.c: make sure we keep line numbers fixes #580705 based Aaron Patterson patch Daniel --- HTMLparser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'HTMLparser.c') 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. -- cgit v1.2.3