summaryrefslogtreecommitdiffstats
path: root/src/mandocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-08-24 10:41:23 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-08-24 10:41:23 (GMT)
commita4bde1e1e71a24d6c714377be4265e95deb1acf3 (patch)
tree102d05997af85748dfb34d448e4ac05524ded74f /src/mandocvisitor.cpp
parentcd6a8d34708c40da3e568fdb689b59e7a3d8bdbc (diff)
downloadDoxygen-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/mandocvisitor.cpp')
-rw-r--r--src/mandocvisitor.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mandocvisitor.cpp b/src/mandocvisitor.cpp
index 8acffc7..6b06958 100644
--- a/src/mandocvisitor.cpp
+++ b/src/mandocvisitor.cpp
@@ -237,7 +237,14 @@ void ManDocVisitor::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
+ );
if (!m_firstCol) m_t << endl;
m_t << ".fi" << endl;
m_t << ".PP" << endl;
@@ -253,7 +260,14 @@ void ManDocVisitor::visit(DocInclude *inc)
inc->text(),
langExt,
inc->isExample(),
- inc->exampleFile());
+ inc->exampleFile(),
+ 0, // fileDef
+ -1, // startLine
+ -1, // endLine
+ TRUE, // inlineFragment
+ 0, // memberDef
+ FALSE
+ );
if (!m_firstCol) m_t << endl;
m_t << ".fi" << endl;
m_t << ".PP" << endl;