summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-31 09:53:25 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-12-31 09:53:25 (GMT)
commit232c85c6c58a02c3216e1f5af3728d3d2db908c2 (patch)
treed193220535b2c0e3d959c8237302e3c97b54b802 /src/latexgen.cpp
parent9e6d6b696388bf3375ed1a8b92ab79ccad21c3a7 (diff)
parentd59ed22f114398d74d5c3fd1445a7901d26ff93a (diff)
downloadDoxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.zip
Doxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.tar.gz
Doxygen-232c85c6c58a02c3216e1f5af3728d3d2db908c2.tar.bz2
Merge branch 'feature/bug_783134' of https://github.com/albert-github/doxygen into albert-github-feature/bug_783134
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index c036d34..6e52a84 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;
@@ -1849,11 +1849,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;
}
@@ -2196,6 +2198,7 @@ void LatexGenerator::lineBreak(const char *)
void LatexGenerator::startMemberDocSimple(bool isEnum)
{
+ usedTableLevels++;
if (isEnum)
{
t << "\\begin{DoxyEnumFields}{";
@@ -2211,6 +2214,7 @@ void LatexGenerator::startMemberDocSimple(bool isEnum)
void LatexGenerator::endMemberDocSimple(bool isEnum)
{
+ usedTableLevels--;
if (isEnum)
{
t << "\\end{DoxyEnumFields}" << endl;