diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-12-24 19:52:54 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-12-24 19:52:54 (GMT) |
commit | 76462e46e09cf3ed528e5d272562adadb05c8e08 (patch) | |
tree | 74b9c804cdbc689945d204f1c854e9bfa1ec5c01 /src/htmldocvisitor.cpp | |
parent | fb864720e5a808a6e9052b2cc5a1a942cb7665ab (diff) | |
download | Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.zip Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.gz Doxygen-76462e46e09cf3ed528e5d272562adadb05c8e08.tar.bz2 |
Release-1.3-rc2-20021224
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index a5bcb1b..12f2654 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -166,7 +166,7 @@ void HtmlDocVisitor::visit(DocStyleChange *s) else { m_insidePre=FALSE; - m_t << "</pre>\n"; + m_t << "</pre>"; } } } @@ -279,24 +279,26 @@ void HtmlDocVisitor::visitPre(DocAutoList *l) { if (l->isEnumList()) { - m_t << "<ol>\n"; + m_t << "<ol>"; } else { - m_t << "<ul>\n"; + m_t << "<ul>"; } + if (!l->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPost(DocAutoList *l) { if (l->isEnumList()) { - m_t << "</ol>\n"; + m_t << "</ol>"; } else { - m_t << "</ul>\n"; + m_t << "</ul>"; } + if (!l->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPre(DocAutoListItem *) @@ -318,8 +320,11 @@ void HtmlDocVisitor::visitPost(DocPara *p) if (!p->isLast() && // omit <p> for last paragraph !(p->parent() && // and for parameter sections p->parent()->kind()==DocNode::Kind_ParamSect - ) - ) m_t << "\n<p>\n"; + ) + ) + { + m_t << "<p>"; + } } void HtmlDocVisitor::visitPre(DocRoot *) @@ -391,14 +396,16 @@ void HtmlDocVisitor::visitPost(DocTitle *) m_t << "</b></dt><dd>"; } -void HtmlDocVisitor::visitPre(DocSimpleList *) +void HtmlDocVisitor::visitPre(DocSimpleList *sl) { - m_t << "<ul>\n"; + m_t << "<ul>"; + if (!sl->isPreformatted()) m_t << "\n"; } -void HtmlDocVisitor::visitPost(DocSimpleList *) +void HtmlDocVisitor::visitPost(DocSimpleList *sl) { - m_t << "</ul>\n"; + m_t << "</ul>"; + if (!sl->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPre(DocSimpleListItem *) @@ -406,9 +413,10 @@ void HtmlDocVisitor::visitPre(DocSimpleListItem *) m_t << "<li>"; } -void HtmlDocVisitor::visitPost(DocSimpleListItem *) +void HtmlDocVisitor::visitPost(DocSimpleListItem *li) { - m_t << "</li>\n"; + m_t << "</li>"; + if (!li->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPre(DocSection *s) @@ -435,14 +443,16 @@ void HtmlDocVisitor::visitPre(DocHtmlList *s) void HtmlDocVisitor::visitPost(DocHtmlList *s) { if (s->type()==DocHtmlList::Ordered) - m_t << "</ol>\n"; + m_t << "</ol>"; else - m_t << "</ul>\n"; + m_t << "</ul>"; + if (!s->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPre(DocHtmlListItem *i) { - m_t << "<li" << htmlAttribsToString(i->attribs()) << ">\n"; + m_t << "<li" << htmlAttribsToString(i->attribs()) << ">"; + if (!i->isPreformatted()) m_t << "\n"; } void HtmlDocVisitor::visitPost(DocHtmlListItem *) |