summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-12-09 12:16:48 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-12-09 12:16:48 (GMT)
commitbdaab918e08f244bf397b1179358d5a54553b4c9 (patch)
treeb5c881205007b5e706c50f811288ab899d343857 /tools
parent3ee5edeff7890c3fc1099029320f0fb038e7f81d (diff)
downloadQt-bdaab918e08f244bf397b1179358d5a54553b4c9.zip
Qt-bdaab918e08f244bf397b1179358d5a54553b4c9.tar.gz
Qt-bdaab918e08f244bf397b1179358d5a54553b4c9.tar.bz2
doc: Fixed the \raisedaster macro to write the <sup> element.
But only for the special case of "*". Still, it got rid of a lot of raw-html cases. More to come here.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/ditaxmlgenerator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qdoc3/ditaxmlgenerator.cpp b/tools/qdoc3/ditaxmlgenerator.cpp
index abe247b..57a6e8d 100644
--- a/tools/qdoc3/ditaxmlgenerator.cpp
+++ b/tools/qdoc3/ditaxmlgenerator.cpp
@@ -1287,6 +1287,11 @@ int DitaXmlGenerator::generateAtom(const Atom *atom,
break;
if (atom->string().startsWith("&"))
writeCharacters(atom->string());
+ else if (atom->string() == "<sup>*</sup>") {
+ xmlWriter().writeStartElement("sup");
+ writeCharacters("*");
+ xmlWriter().writeEndElement(); // </sup>
+ }
else {
xmlWriter().writeStartElement("pre");
xmlWriter().writeAttribute("outputclass","raw-html");