[libxml2] Fix xmlKeepBlanksDefault to not break indent



commit 2f522dc68ff078220b3d5ef76a50349b787a2bef
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Thu Aug 20 12:11:17 2009 +0200

    Fix xmlKeepBlanksDefault to not break indent
    
    * parserInternals.c: the old compatibility function xmlKeepBlanksDefault()
      should not reset xmlIndentTreeOutput to 0 because the default is 1

 parserInternals.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/parserInternals.c b/parserInternals.c
index 758c6b3..d7591b9 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -2067,7 +2067,7 @@ xmlKeepBlanksDefault(int val) {
     int old = xmlKeepBlanksDefaultValue;
 
     xmlKeepBlanksDefaultValue = val;
-    xmlIndentTreeOutput = !val;
+    if (!val) xmlIndentTreeOutput = 1;
     return(old);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]