summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/ditaxmlgenerator.cpp
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-10-25 10:30:50 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-10-25 10:30:50 (GMT)
commit766b23e722743c0b99c03cf4a035b5b20cb8a88f (patch)
treed48a6a27ddb8bbeda95a5a1bf48c637376606412 /tools/qdoc3/ditaxmlgenerator.cpp
parentcbcaa64e3ff7ad8293c95df938901694b3f472bd (diff)
downloadQt-766b23e722743c0b99c03cf4a035b5b20cb8a88f.zip
Qt-766b23e722743c0b99c03cf4a035b5b20cb8a88f.tar.gz
Qt-766b23e722743c0b99c03cf4a035b5b20cb8a88f.tar.bz2
qdoc: Fixed some DITA XML validation errors.
Diffstat (limited to 'tools/qdoc3/ditaxmlgenerator.cpp')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index 3397033..e1aa519 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -1282,7 +1282,10 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
xmlWriter().writeEndElement(); // </lq>
break;
case Atom::RawString:
+ xmlWriter().writeStartElement("pre");
+ xmlWriter().writeAttribute("outputclass","raw-html");
xmlWriter().writeCharacters(atom->string());
+ xmlWriter().writeEndElement(); // </pre>
break;
case Atom::SectionLeft:
if (inSection || inApiDesc) {
@@ -5678,4 +5681,12 @@ DitaXmlGenerator::generateInnerNode(const InnerNode* node, CodeMarker* marker)
}
}
+/*!
+ Returns true if \a format is "XML" or "HTML" .
+ */
+bool DitaXmlGenerator::canHandleFormat(const QString& format)
+{
+ return (format == "HTML") || (format == this->format());
+}
+
QT_END_NAMESPACE