Fix a missing #ifdef

https://bugzilla.gnome.org/show_bug.cgi?id=611806
Problem raised by Mark Overmeer
This commit is contained in:
Daniel Veillard 2010-03-10 15:02:49 +01:00
parent 743311bd91
commit 9ccea57d61

View File

@ -2655,8 +2655,11 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if (format)
saveOpts |= XML_SAVE_FORMAT;
#if defined(LIBXML_HTML_ENABLED) || defined(LIBXML_VALID_ENABLED)
if (xmlout)
saveOpts |= XML_SAVE_AS_XML;
#endif
if (output == NULL)
ctxt = xmlSaveToFd(1, encoding, saveOpts);