From ef9c151c86073f107ec6556b779cd7b8da3154eb Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 11 Sep 2018 19:35:49 +0200 Subject: 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) --- src/latexgen.cpp | 8 +++----- 1 file 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; } -- cgit v0.12