summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-09-27 19:08:41 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-09-27 19:08:41 (GMT)
commit502e03dad20b333748d73fdea4cf6d7cb0ab31a8 (patch)
treecb1b7947527739f8652cc478c3307678761f6a69 /src/latexgen.cpp
parenta0f637dcc6624b54f03cc17e765d5f5f7bc5bc70 (diff)
downloadDoxygen-502e03dad20b333748d73fdea4cf6d7cb0ab31a8.zip
Doxygen-502e03dad20b333748d73fdea4cf6d7cb0ab31a8.tar.gz
Doxygen-502e03dad20b333748d73fdea4cf6d7cb0ab31a8.tar.bz2
Fix for broken LaTeX output.
Fixes error: "\begin{DoxyCodeInclude} on input line 93 ended by \end{DoxyCode}" while generating the LaTeX version of the manual
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 292767e..3343c1a 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -260,12 +260,12 @@ void LatexCodeGenerator::startCodeFragment(const char *style)
m_t << "\n\\begin{" << style << "}{" << m_usedTableLevel << "}\n";
}
-void LatexCodeGenerator::endCodeFragment()
+void LatexCodeGenerator::endCodeFragment(const char *style)
{
//endCodeLine checks is there is still an open code line, if so closes it.
endCodeLine();
- m_t << "\\end{DoxyCode}\n";
+ m_t << "\\end{" << style << "}\n";
}