Skip to content

Commit

Permalink
Close last code line properly.
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
albert-github committed Sep 11, 2018
1 parent f8c3537 commit ef9c151
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/latexgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ef9c151

Please sign in to comment.