diff options
author | Martin Smith <martin.smith@nokia.com> | 2011-01-07 07:32:24 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2011-01-07 07:32:24 (GMT) |
commit | f9400e81d6e817eb16651e01bb3710cf8562c926 (patch) | |
tree | c1aa61336f887ebfcdf90c0b25c0469edeb3e63a /tools/qdoc3/htmlgenerator.cpp | |
parent | e3a3ae24e54a4461498ae8185b89bdf429e68574 (diff) | |
download | Qt-f9400e81d6e817eb16651e01bb3710cf8562c926.zip Qt-f9400e81d6e817eb16651e01bb3710cf8562c926.tar.gz Qt-f9400e81d6e817eb16651e01bb3710cf8562c926.tar.bz2 |
qdoc: Replaced many raw-html cases with \div {something}.
Diffstat (limited to 'tools/qdoc3/htmlgenerator.cpp')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 948a7d6..1ddc0b9 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -511,13 +511,20 @@ int HtmlGenerator::generateAtom(const Atom *atom, << trimmedTrailing(protectEnc(plainCode(indent(codeIndent,atom->string())))) << "</pre>\n"; break; - case Atom::Div: + case Atom::DivLeft: out() << "<div"; - if (!atom->string().isEmpty()) - out() << " class=\"" << atom->string() << "\">"; + if (!atom->string().isEmpty()) { + if (atom->string().contains('=')) + out() << " " << atom->string() << ">"; + else + out() << " class=\"" << atom->string() << "\">"; + } else out() << ">"; break; + case Atom::DivRight: + out() << "</div>"; + break; case Atom::FootnoteLeft: // ### For now if (in_para) { @@ -1136,9 +1143,6 @@ int HtmlGenerator::generateAtom(const Atom *atom, out() << "<b class=\"redFont\"><code>\\" << protectEnc(atom->string()) << "</code></b>"; break; - case Atom::EndDiv: - out() << "</div>"; - break; #ifdef QDOC_QML case Atom::QmlText: case Atom::EndQmlText: |