diff options
author | albert-github <albert.tests@gmail.com> | 2017-05-28 11:14:50 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2017-05-28 11:14:50 (GMT) |
commit | d59ed22f114398d74d5c3fd1445a7901d26ff93a (patch) | |
tree | 6b58e7037c64c4a14d07f907b05a6e2b18e26750 /src/latexdocvisitor.cpp | |
parent | 9b7b33994f6443c26146837ba13dff94e5eba998 (diff) | |
download | Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.zip Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.tar.gz Doxygen-d59ed22f114398d74d5c3fd1445a7901d26ff93a.tar.bz2 |
Bug 783134 - LaTeX output for \tparam block fails to compile when it contains a \code block
General problem regarding having a code / verbatim section inside a table.
Besides handling of the $ some other characters need special handling as well as the \n.
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 9016c25..5463830 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -35,6 +35,7 @@ #include "plantuml.h" const int maxLevels=5; +int usedTableLevels = 0; static const char *secLabels[maxLevels] = { "section","subsection","subsubsection","paragraph","subparagraph" }; @@ -1391,6 +1392,7 @@ void LatexDocVisitor::visitPre(DocParamSect *s) if (m_hide) return; bool hasInOutSpecs = s->hasInOutSpecifier(); bool hasTypeSpecs = s->hasTypeSpecifier(); + usedTableLevels++; switch(s->type()) { case DocParamSect::Param: @@ -1424,6 +1426,7 @@ void LatexDocVisitor::visitPre(DocParamSect *s) void LatexDocVisitor::visitPost(DocParamSect *s) { if (m_hide) return; + usedTableLevels--; switch(s->type()) { case DocParamSect::Param: |