summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.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/latexdocvisitor.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/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 6c20792..fbb6530 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -354,7 +354,7 @@ void LatexDocVisitor::visit(DocVerbatim *s)
m_ci.startCodeFragment("DoxyCode");
getCodeParser(lang).parseCode(m_ci,s->context(),s->text(),langExt,
s->isExample(),s->exampleFile());
- m_ci.endCodeFragment();
+ m_ci.endCodeFragment("DoxyCode");
}
break;
case DocVerbatim::Verbatim:
@@ -474,7 +474,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
TRUE // show line numbers
);
delete fd;
- m_ci.endCodeFragment();
+ m_ci.endCodeFragment("DoxyCodeInclude");
}
break;
case DocInclude::Include:
@@ -490,7 +490,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
0, // memberDef
FALSE
);
- m_ci.endCodeFragment();
+ m_ci.endCodeFragment("DoxyCodeInclude");
}
break;
case DocInclude::DontInclude:
@@ -519,7 +519,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
inc->isExample(),
inc->exampleFile()
);
- m_ci.endCodeFragment();
+ m_ci.endCodeFragment("DoxyCodeInclude");
}
break;
case DocInclude::SnipWithLines:
@@ -541,7 +541,7 @@ void LatexDocVisitor::visit(DocInclude *inc)
TRUE // show line number
);
delete fd;
- m_ci.endCodeFragment();
+ m_ci.endCodeFragment("DoxyCodeInclude");
}
break;
case DocInclude::SnippetDoc:
@@ -594,7 +594,7 @@ void LatexDocVisitor::visit(DocIncOperator *op)
if (op->isLast())
{
popEnabled();
- if (!m_hide) m_ci.endCodeFragment();
+ if (!m_hide) m_ci.endCodeFragment("DoxyCodeInclude");
}
else
{