From 4974050bdc19974a22641f856c9ece95ec973999 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 29 Dec 2020 13:01:46 +0100 Subject: Layout in doxywizard documentation When looking at page 100 of the doxygen 1.9.0 manual (i.e. chapter Doxywizard usage, bold part "Configure doxygen using the Wizard and/or Expert tab..Configure doxygen using the Wizard and/or Expert tab...") we see that the word "Wizard tab" in comparison to "Expert tab" are a bit on a strange place. In the HTML documentation this looks OK The problem is caused by the fact that we have her nested description (`
` lists), a new paragraph should be started / the line should be properly filled and this can be done by means of the `\hfill`. --- src/latexdocvisitor.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index fbb6530..e6c9363 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -951,6 +951,26 @@ void LatexDocVisitor::visitPost(DocHtmlListItem *) // m_t << "\\end{alltt}\\normalsize " << endl; //} +static bool listIsNested(const DocNode *n) +{ + bool isNested=false; + if (n) + { + if (n->kind()==DocNode::Kind_HtmlDescList && ((DocHtmlDescList *)n)->attribs().find("class") == "reflist") return false; + n = n->parent(); + } + while (n && !isNested) + { + if (n->kind()==DocNode::Kind_HtmlDescList) + { + QCString val = ((DocHtmlDescList *)n)->attribs().find("class"); + isNested = (val!="reflist"); + } + n = n->parent(); + } + return isNested; +} + void LatexDocVisitor::visitPre(DocHtmlDescList *dl) { if (m_hide) return; @@ -961,6 +981,7 @@ void LatexDocVisitor::visitPre(DocHtmlDescList *dl) } else { + if (listIsNested(dl)) m_t << "\n\\hfill"; m_t << "\n\\begin{DoxyDescription}"; } } -- cgit v0.12