diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-28 12:47:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-05-28 12:47:44 (GMT) |
commit | 70b82eced91d2739181f2b700ec04cb14d776d7b (patch) | |
tree | 3e4e50e4fa9b9f0f4c75870e0a09ffc488b34699 /src/latexdocvisitor.cpp | |
parent | ecdf7c392922b84a6a1803270104a448e2723c86 (diff) | |
download | Doxygen-70b82eced91d2739181f2b700ec04cb14d776d7b.zip Doxygen-70b82eced91d2739181f2b700ec04cb14d776d7b.tar.gz Doxygen-70b82eced91d2739181f2b700ec04cb14d776d7b.tar.bz2 |
Release-1.3.1
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 13 |
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; } } |