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/latexgen.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/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 8d338ae..84dd9c2 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -92,7 +92,7 @@ void LatexCodeGenerator::codify(const char *str) m_col+=spacesToNextTabStop; p++; break; - case '\n': m_t << '\n'; m_col=0; p++; + case '\n': (usedTableLevels>0) ? m_t << "\\newline\n" : m_t << '\n'; m_col=0; p++; break; default: i=0; @@ -1843,11 +1843,13 @@ void LatexGenerator::writeNonBreakableSpace(int) void LatexGenerator::startDescTable(const char *title) { + usedTableLevels++; t << "\\begin{DoxyEnumFields}{" << title << "}" << endl; } void LatexGenerator::endDescTable() { + usedTableLevels--; t << "\\end{DoxyEnumFields}" << endl; } @@ -2190,6 +2192,7 @@ void LatexGenerator::lineBreak(const char *) void LatexGenerator::startMemberDocSimple(bool isEnum) { + usedTableLevels++; if (isEnum) { t << "\\begin{DoxyEnumFields}{"; @@ -2205,6 +2208,7 @@ void LatexGenerator::startMemberDocSimple(bool isEnum) void LatexGenerator::endMemberDocSimple(bool isEnum) { + usedTableLevels--; if (isEnum) { t << "\\end{DoxyEnumFields}" << endl; |