mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
parser: Stop using ctxt->linenumbers
I think this was used to avoid setting the `line` member before it was added (20+ years ago).
This commit is contained in:
@@ -4527,7 +4527,6 @@ htmlInitParserCtxt(htmlParserCtxtPtr ctxt, const htmlSAXHandler *sax,
|
||||
ctxt->myDoc = NULL;
|
||||
ctxt->wellFormed = 1;
|
||||
ctxt->replaceEntities = 0;
|
||||
ctxt->linenumbers = xmlLineNumbersDefaultValue;
|
||||
ctxt->keepBlanks = xmlKeepBlanksDefaultValue;
|
||||
ctxt->html = INSERT_INITIAL;
|
||||
ctxt->vctxt.flags = XML_VCTXT_USE_PCTXT;
|
||||
@@ -5601,8 +5600,6 @@ htmlCtxtSetOptionsInternal(xmlParserCtxtPtr ctxt, int options, int keepMask)
|
||||
*/
|
||||
ctxt->dictNames = 0;
|
||||
|
||||
ctxt->linenumbers = 1;
|
||||
|
||||
/*
|
||||
* Allow XML_PARSE_NOENT which many users set on the HTML parser.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user