summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/htmlgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp20
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