diff options
author | albert-github <albert.tests@gmail.com> | 2016-08-24 10:41:23 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2016-08-24 10:41:23 (GMT) |
commit | a4bde1e1e71a24d6c714377be4265e95deb1acf3 (patch) | |
tree | 102d05997af85748dfb34d448e4ac05524ded74f /src/latexdocvisitor.cpp | |
parent | cd6a8d34708c40da3e568fdb689b59e7a3d8bdbc (diff) | |
download | Doxygen-a4bde1e1e71a24d6c714377be4265e95deb1acf3.zip Doxygen-a4bde1e1e71a24d6c714377be4265e95deb1acf3.tar.gz Doxygen-a4bde1e1e71a24d6c714377be4265e95deb1acf3.tar.bz2 |
Include command show line number (e.g. LaTeX)
Based on the report of Luis Vega (http://doxygen.10944.n7.nabble.com/include-inserts-line-numbers-for-LaTeX-PDF-output-td7683.html)
The default setting for parseCode calls was not consistent between the different output formats, resulting in wrong settings of default options (e.g. show line numbers).
Diffstat (limited to 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 4a98c77..2c1bc37 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -431,7 +431,14 @@ void LatexDocVisitor::visit(DocInclude *inc) inc->text(), langExt, inc->isExample(), - inc->exampleFile(), &fd); + inc->exampleFile(), + &fd, // fileDef, + -1, // start line + -1, // end line + FALSE, // inline fragment + 0, // memberDef + TRUE // show line numbers + ); m_t << "\\end{DoxyCodeInclude}" << endl; } break; @@ -440,7 +447,14 @@ void LatexDocVisitor::visit(DocInclude *inc) Doxygen::parserManager->getParser(inc->extension()) ->parseCode(m_ci,inc->context(), inc->text(),langExt,inc->isExample(), - inc->exampleFile()); + inc->exampleFile(), + 0, // fileDef + -1, // startLine + -1, // endLine + TRUE, // inlineFragment + 0, // memberDef + FALSE + ); m_t << "\\end{DoxyCodeInclude}\n"; break; case DocInclude::DontInclude: |