1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-04-24 18:50:07 +03:00

Fix xmlKeepBlanksDefault to not break indent

* parserInternals.c: the old compatibility function xmlKeepBlanksDefault()
  should not reset xmlIndentTreeOutput to 0 because the default is 1
This commit is contained in:
Nick Wellnhofer 2009-08-20 12:11:17 +02:00 committed by Daniel Veillard
parent 982ff6377a
commit 2f522dc68f

View File

@ -2067,7 +2067,7 @@ xmlKeepBlanksDefault(int val) {
int old = xmlKeepBlanksDefaultValue;
xmlKeepBlanksDefaultValue = val;
xmlIndentTreeOutput = !val;
if (!val) xmlIndentTreeOutput = 1;
return(old);
}