diff options
author | albert-github <albert.tests@gmail.com> | 2018-09-11 17:35:49 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-09-11 17:35:49 (GMT) |
commit | ef9c151c86073f107ec6556b779cd7b8da3154eb (patch) | |
tree | 37a616e3500a2afda45e4c48e4efb8d2b52de335 | |
parent | f8c353715a69341f9e4658cd59e750a0adf6bd5d (diff) | |
download | Doxygen-ef9c151c86073f107ec6556b779cd7b8da3154eb.zip Doxygen-ef9c151c86073f107ec6556b779cd7b8da3154eb.tar.gz Doxygen-ef9c151c86073f107ec6556b779cd7b8da3154eb.tar.bz2 |
Close last code line properly.
When ending code fragment, check if last code line is closed, if this is not the case close it.
(problem observed with inline code in Python, but might happen on other places as well)
-rw-r--r-- | src/latexgen.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 13a88a9..50d4242 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -2222,11 +2222,9 @@ void LatexGenerator::startCodeFragment() void LatexGenerator::endCodeFragment() { - //if (DoxyCodeOpen) - //{ - // t << "}\n"; - // DoxyCodeOpen = FALSE; - //} + //endCodeLine checks is there is still an open code line, if so closes it. + endCodeLine(); + t << "\\end{DoxyCode}\n"; DoxyCodeOpen = FALSE; } |