diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-01-19 12:58:48 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-01-19 12:58:48 (GMT) |
commit | ebaf3a991d0ef0533c829305ae1968bed41e2773 (patch) | |
tree | 0da2ef1bd95affd9794452121839ac190f71cc3b /tools/qdoc3/htmlgenerator.cpp | |
parent | 74f63cebc430ef6634917577783dafeed9a233d5 (diff) | |
download | Qt-ebaf3a991d0ef0533c829305ae1968bed41e2773.zip Qt-ebaf3a991d0ef0533c829305ae1968bed41e2773.tar.gz Qt-ebaf3a991d0ef0533c829305ae1968bed41e2773.tar.bz2 |
qdoc: Fixed some validation errors in the DITA files
11 instances of raw-html remain.
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 2f990b0..e095685 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -524,14 +524,9 @@ int HtmlGenerator::generateAtom(const Atom *atom, break; case Atom::DivLeft: out() << "<div"; - if (!atom->string().isEmpty()) { - if (atom->string().contains('=')) - out() << " " << atom->string() << ">"; - else - out() << " class=\"" << atom->string() << "\">"; - } - else - out() << ">"; + if (!atom->string().isEmpty()) + out() << " " << atom->string(); + out() << ">"; break; case Atom::DivRight: out() << "</div>"; @@ -1106,13 +1101,8 @@ int HtmlGenerator::generateAtom(const Atom *atom, } break; case Atom::TableRowLeft: - if (!atom->string().isEmpty()) { - out() << "<tr "; - if (atom->string().contains('=')) - out() << " " << atom->string() << ">"; - else - out() << " class=\"" << atom->string() << "\">"; - } + if (!atom->string().isEmpty()) + out() << "<tr " << atom->string() << ">"; else if (++numTableRows % 2 == 1) out() << "<tr class=\"odd\">"; else |