diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-10-27 10:46:12 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-10-27 10:46:12 (GMT) |
commit | a57e16bcc728cd71ab4b8b2b86fe25a9b36078e5 (patch) | |
tree | af2284ab5d995e7b879c620e13a0fa2b13c04fcf /tools/qdoc3/ditaxmlgenerator.cpp | |
parent | 9b83b7708f02779d0d0405fd05468f03e32de133 (diff) | |
download | Qt-a57e16bcc728cd71ab4b8b2b86fe25a9b36078e5.zip Qt-a57e16bcc728cd71ab4b8b2b86fe25a9b36078e5.tar.gz Qt-a57e16bcc728cd71ab4b8b2b86fe25a9b36078e5.tar.bz2 |
qdoc: Fixed some DITA XML validation errors.
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-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 2cbbfd5..a47a956 100644 --- a/tools/qdoc3/ditaxmlgenerator.cpp +++ b/tools/qdoc3/ditaxmlgenerator.cpp @@ -2801,6 +2801,8 @@ void DitaXmlGenerator::generateClassHierarchy(const Node* relative, if (stack.top().isEmpty()) { stack.pop(); xmlWriter().writeEndElement(); // </ul> + if (!stack.isEmpty()) + xmlWriter().writeEndElement(); // </li> } else { const ClassNode *child = @@ -2817,6 +2819,7 @@ void DitaXmlGenerator::generateClassHierarchy(const Node* relative, } if (!newTop.isEmpty()) { stack.push(newTop); + xmlWriter().writeStartElement("li"); xmlWriter().writeStartElement("ul"); } } |