diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-10-20 12:43:18 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-10-20 12:43:18 (GMT) |
commit | e3d8c3b9ca03a90be0b5032f195acfb4d0ce7bb4 (patch) | |
tree | c8b71d21287ce844189f864f2389e780708e29ef | |
parent | 4f91ec092e62f03cc68cde4d6a070d3caa8c657d (diff) | |
download | Qt-e3d8c3b9ca03a90be0b5032f195acfb4d0ce7bb4.zip Qt-e3d8c3b9ca03a90be0b5032f195acfb4d0ce7bb4.tar.gz Qt-e3d8c3b9ca03a90be0b5032f195acfb4d0ce7bb4.tar.bz2 |
qdoc: Fixed some DITA XML validation errors.
-rw-r--r-- | tools/qdoc3/ditaxmlgenerator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp index 062a023..2d719cf 100644 --- a/tools/qdoc3/ditaxmlgenerator.cpp +++ b/tools/qdoc3/ditaxmlgenerator.cpp @@ -1333,6 +1333,7 @@ int DitaXmlGenerator::generateAtom(const Atom *atom, xmlWriter().writeEndElement(); // </blockquote> break; case Atom::RawString: + qDebug() << "RAW:" << atom->string(); xmlWriter().writeCharacters(atom->string()); break; case Atom::SectionLeft: @@ -2597,6 +2598,8 @@ void DitaXmlGenerator::generateAnnotatedList(const Node* relative, CodeMarker* marker, const NodeMap& nodeMap) { + if (nodeMap.isEmpty()) + return; xmlWriter().writeStartElement("table"); xmlWriter().writeAttribute("outputclass","annotated"); xmlWriter().writeStartElement("tgroup"); |