[libxml2] Fix xmlKeepBlanksDefault to not break indent
- From: Daniel Veillard <veillard src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libxml2] Fix xmlKeepBlanksDefault to not break indent
- Date: Thu, 20 Aug 2009 10:12:39 +0000 (UTC)
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]