fix output of XML document types

svn path=/trunk/; revision=23403
This commit is contained in:
Martin Fuchs 2006-08-01 09:23:41 +00:00
parent eb035c3d8f
commit 9940e41a7b
2 changed files with 6 additions and 6 deletions

View file

@ -610,14 +610,14 @@ void XMLFormat::print_header(std::ostream& out, bool lf) const
out << "<!DOCTYPE " << _doctype._name;
if (!_doctype._public.empty()) {
out << " PUBLIC " << _doctype._public;
out << " PUBLIC \"" << _doctype._public << '"';
if (lf)
out << _endl;
out << " " << _doctype._system;
out << " \"" << _doctype._system << '"';
} else if (!_doctype._system.empty())
out << " SYSTEM " << _doctype._system;
out << " SYSTEM \"" << _doctype._system << '"';
out << "?>";

View file

@ -610,14 +610,14 @@ void XMLFormat::print_header(std::ostream& out, bool lf) const
out << "<!DOCTYPE " << _doctype._name;
if (!_doctype._public.empty()) {
out << " PUBLIC " << _doctype._public;
out << " PUBLIC \"" << _doctype._public << '"';
if (lf)
out << _endl;
out << " " << _doctype._system;
out << " \"" << _doctype._system << '"';
} else if (!_doctype._system.empty())
out << " SYSTEM " << _doctype._system;
out << " SYSTEM \"" << _doctype._system << '"';
out << "?>";