diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-03-19 12:20:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-03-19 12:20:56 +0200 |
commit | d2566c96cd0f0c720faf9a5507bdd3dc3af8f2a5 (patch) | |
tree | 7606ff7634206ae0d81266ff807280b2b93e43b7 /libxsd | |
parent | 4b3b5d47300f27dfda25caa9deff3f5ab1560cc8 (diff) |
Configure Xerces-C++ not to print extra newline for 1st level elements
Diffstat (limited to 'libxsd')
-rw-r--r-- | libxsd/xsd/cxx/xml/dom/serialization-source.txx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/xml/dom/serialization-source.txx b/libxsd/xsd/cxx/xml/dom/serialization-source.txx index efd4141..f96dcb4 100644 --- a/libxsd/xsd/cxx/xml/dom/serialization-source.txx +++ b/libxsd/xsd/cxx/xml/dom/serialization-source.txx @@ -310,8 +310,15 @@ namespace xsd if (!(flags & dont_pretty_print) && conf->canSetParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true)) + { conf->setParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true); + // Don't add extra new lines between first-level elements. + // + if (conf->canSetParameter (XMLUni::fgDOMWRTXercesPrettyPrint, true)) + conf->setParameter (XMLUni::fgDOMWRTXercesPrettyPrint, false); + } + // See if we need to write XML declaration. // if ((flags & no_xml_declaration) && |