summaryrefslogtreecommitdiff
path: root/xmlsave.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
committerMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
commita7457388701e6ccba9091ba3ec09505dc903b758 (patch)
tree80a7d0fba3968fee73cc71a62ffe1af039396f29 /xmlsave.c
parentf51dd67f3a3f472af0620391eb588eeca4533689 (diff)
downloadlibxml2-a7457388701e6ccba9091ba3ec09505dc903b758.tar.gz
Load /tmp/tmp.5kkLmZ/libxml2-2.6.17 intoupstream/2.6.17
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'xmlsave.c')
-rw-r--r--xmlsave.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmlsave.c b/xmlsave.c
index 72ad699..a774bc8 100644
--- a/xmlsave.c
+++ b/xmlsave.c
@@ -377,7 +377,14 @@ xmlNewSaveCtxt(const char *encoding, int options)
return ( NULL );
}
memset(ret, 0, sizeof(xmlSaveCtxt));
+
+ /*
+ * Use the options
+ */
ret->options = options;
+ if (options & XML_SAVE_FORMAT)
+ ret->format = 1;
+
if (encoding != NULL) {
ret->handler = xmlFindCharEncodingHandler(encoding);
if (ret->handler == NULL) {