From 11476b4eacfd6283921fdb7878a4b9f1571ed68d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 26 Sep 2003 14:51:39 +0000 Subject: [PATCH] fixed a backward compatibility problem when formatting "deprecated SAXv1 * parserInternals.c: fixed a backward compatibility problem when formatting "deprecated SAXv1 function ignorableWhitespace" could be reproduced by xmllint --format Daniel --- ChangeLog | 6 ++++++ parserInternals.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fbcc99cf..9bd0ac52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Sep 26 16:49:25 CEST 2003 Daniel Veillard + + * parserInternals.c: fixed a backward compatibility problem + when formatting "deprecated SAXv1 function ignorableWhitespace" + could be reproduced by xmllint --format + Fri Sep 26 15:50:44 CEST 2003 Daniel Veillard * doc/libxml2-api.xml: rebuilt the API diff --git a/parserInternals.c b/parserInternals.c index 5a9c8e05..c2d88f7c 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -2320,7 +2320,7 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt) ctxt->linenumbers = xmlLineNumbersDefaultValue; ctxt->keepBlanks = xmlKeepBlanksDefaultValue; if (ctxt->keepBlanks == 0) - ctxt->sax->ignorableWhitespace = ignorableWhitespace; + ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace; ctxt->vctxt.userData = ctxt; ctxt->vctxt.error = xmlParserValidityError; @@ -2687,7 +2687,7 @@ xmlSubstituteEntitiesDefault(int val) { * Set and return the previous value for default blanks text nodes support. * The 1.x version of the parser used an heuristic to try to detect * ignorable white spaces. As a result the SAX callback was generating - * ignorableWhitespace() callbacks instead of characters() one, and when + * xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when * using the DOM output text nodes containing those blanks were not generated. * The 2.x and later version will switch to the XML standard way and * ignorableWhitespace() are only generated when running the parser in