summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-08-23 15:31:18 +0200
committerDaniel Veillard <veillard@redhat.com>2009-08-23 15:31:18 +0200
commit9d9626472177ecc1d3aaebf7f523efb55707e62c (patch)
tree6817e2faee74217ed1b8cc60ad0d241b895500cc /xmllint.c
parent48b60c3c4d94a2aeb93ae9ff2181ad76b79eddd9 (diff)
downloadlibxml2-9d9626472177ecc1d3aaebf7f523efb55707e62c.tar.gz
587867 xmllint --html --xmlout serializing as HTML
* xmllint.c: one option was needed after the switch to the new save API
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index d1116afc..9b0b89d0 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2549,6 +2549,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if (format)
saveOpts |= XML_SAVE_FORMAT;
+ if (xmlout)
+ saveOpts |= XML_SAVE_AS_XML;
if (output == NULL)
ctxt = xmlSaveToFd(1, encoding, saveOpts);