diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-24 20:00:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-24 20:00:14 (GMT) |
commit | 3aaaf142be657201a2664c10b96447acb1610187 (patch) | |
tree | acf5ce8ed64ee56e5f7eec664f2f00260d068e9c /src/htmldocvisitor.cpp | |
parent | edeb82c1e0cebe5437fb637c9d239a8cecfca0cb (diff) | |
download | Doxygen-3aaaf142be657201a2664c10b96447acb1610187.zip Doxygen-3aaaf142be657201a2664c10b96447acb1610187.tar.gz Doxygen-3aaaf142be657201a2664c10b96447acb1610187.tar.bz2 |
Release-1.3.8-20040824
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index e6017ba..03a1759 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -29,6 +29,10 @@ #include "htmlgen.h" +static const int NUM_HTML_LIST_TYPES = 4; +static const char types[][NUM_HTML_LIST_TYPES] = {"1", "a", "i", "A"}; + + static QString htmlAttribsToString(const HtmlAttribList &attribs) { QString result; @@ -327,12 +331,21 @@ void HtmlDocVisitor::visit(DocIndexEntry *) // visitor functions for compound nodes //-------------------------------------- + void HtmlDocVisitor::visitPre(DocAutoList *l) { if (m_hide) return; if (l->isEnumList()) { - m_t << "<ol>"; + // + // Do list type based on depth: + // 1. + // a. + // i. + // A. + // 1. (repeat)... + // + m_t << "<ol type=" << types[l->depth() % NUM_HTML_LIST_TYPES] << ">"; } else { |