summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-08-24 20:00:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-08-24 20:00:14 (GMT)
commit4b77f4fc83a7954a741c1b35ec50e918a2786559 (patch)
treeacf5ce8ed64ee56e5f7eec664f2f00260d068e9c /src/htmldocvisitor.cpp
parentbb18b811e8f1a4a939eadf28d12bc5f99dd74b82 (diff)
downloadDoxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.zip
Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.gz
Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.bz2
Release-1.3.8-20040824
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp15
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
{