[libxslt] Call xmlNodeGetSpacePreserve with element node
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Call xmlNodeGetSpacePreserve with element node
- Date: Fri, 14 Feb 2014 16:21:49 +0000 (UTC)
commit 7cb08dacadf7e1cf88ee2f45815251b61bffcde6
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Fri Feb 14 17:18:53 2014 +0100
Call xmlNodeGetSpacePreserve with element node
Since libxml2 version 2.9.0, xmlNodeGetSpacePreserve checks that the
argument is an element node:
https://git.gnome.org/browse/libxml2/commit/?id=3e62adbe39f2083c9c2cd3330c320227818fd361
libxslt/xslt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index 58d1386..972a38e 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -3553,7 +3553,7 @@ xsltPrecomputeStylesheet(xsltStylesheetPtr style, xmlNodePtr cur)
}
} else if (cur->type == XML_TEXT_NODE) {
if (IS_BLANK_NODE(cur)) {
- if (xmlNodeGetSpacePreserve(cur) != 1) {
+ if (xmlNodeGetSpacePreserve(cur->parent) != 1) {
deleteNode = cur;
}
} else if ((cur->content != NULL) && (internalize) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]