summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-31 08:40:51 (GMT)
committerGitHub <noreply@github.com>2020-12-31 08:40:51 (GMT)
commit96b894c3226a962db976fd9e4a2536dc42603124 (patch)
tree53d4ac12030826634e7770f43bd03a81da6da0de
parent4a070f8b60eefa7997c9fdd59553970de3645207 (diff)
parent4974050bdc19974a22641f856c9ece95ec973999 (diff)
downloadDoxygen-96b894c3226a962db976fd9e4a2536dc42603124.zip
Doxygen-96b894c3226a962db976fd9e4a2536dc42603124.tar.gz
Doxygen-96b894c3226a962db976fd9e4a2536dc42603124.tar.bz2
Merge pull request #8285 from albert-github/feature/bug_doxyw_docu
Layout in doxywizard documentation
-rw-r--r--src/latexdocvisitor.cpp21
1 files changed, 21 insertions, 0 deletions
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}";
}
}