summaryrefslogtreecommitdiffstats
path: root/src/latexdocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-28 12:47:44 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-28 12:47:44 (GMT)
commit35c2baedaa68519999af733a87d8e6ff9a89358c (patch)
tree3e4e50e4fa9b9f0f4c75870e0a09ffc488b34699 /src/latexdocvisitor.cpp
parent9e1745a1714d4ece7d490918de2eb7ff2060453e (diff)
downloadDoxygen-35c2baedaa68519999af733a87d8e6ff9a89358c.zip
Doxygen-35c2baedaa68519999af733a87d8e6ff9a89358c.tar.gz
Doxygen-35c2baedaa68519999af733a87d8e6ff9a89358c.tar.bz2
Release-1.3.1
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r--src/latexdocvisitor.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index cdbea1b..b3dc1d9 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -241,7 +241,7 @@ void LatexDocVisitor::visit(DocVerbatim *s)
if (m_hide) return;
switch(s->type())
{
- case DocVerbatim::Code: // fall though
+ case DocVerbatim::Code:
m_t << "\n\n\\footnotesize\\begin{verbatim}";
parseCode(m_ci,s->context(),s->text().latin1(),s->isExample(),s->exampleFile());
m_t << "\\end{verbatim}\\normalsize" << endl;
@@ -295,8 +295,8 @@ void LatexDocVisitor::visit(DocInclude *inc)
void LatexDocVisitor::visit(DocIncOperator *op)
{
- //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
- // op->type(),op->isFirst(),op->isLast(),op->text().data());
+ printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n",
+ op->type(),op->isFirst(),op->isLast(),op->text().data());
if (op->isFirst())
{
if (!m_hide) m_t << "\n\n\\footnotesize\\begin{verbatim}";
@@ -305,16 +305,19 @@ void LatexDocVisitor::visit(DocIncOperator *op)
}
if (op->type()!=DocIncOperator::Skip)
{
+ popEnabled();
if (!m_hide) parseCode(m_ci,op->context(),op->text().latin1(),op->isExample(),op->exampleFile());
+ pushEnabled();
+ m_hide=TRUE;
}
if (op->isLast())
{
popEnabled();
- if (m_hide) m_t << "\\end{verbatim}\\normalsize" << endl;
+ if (!m_hide) m_t << "\\end{verbatim}\\normalsize" << endl;
}
else
{
- m_t << endl;
+ if (!m_hide) m_t << endl;
}
}