diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:34:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:38:25 (GMT) |
commit | 208c689e4c13cc065045a6f6b1ff685eda5a3cd6 (patch) | |
tree | 7acb4e2952e920991e88d915ed6f786d717ac73d /src/docbookvisitor.cpp | |
parent | 169a67186780c191749b958de0f71a17fa090248 (diff) | |
parent | 0c8bc0e1bae616cab770884864d72d66db953235 (diff) | |
download | Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.zip Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.tar.gz Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.tar.bz2 |
Merge branch 'albert-github-feature/bug_lineno_split_examples'
Diffstat (limited to 'src/docbookvisitor.cpp')
-rw-r--r-- | src/docbookvisitor.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp index 3e4874d..28f6229 100644 --- a/src/docbookvisitor.cpp +++ b/src/docbookvisitor.cpp @@ -408,9 +408,8 @@ DB_VIS_C m_t << "</computeroutput></literallayout>"; break; case DocInclude::DontInclude: - break; + case DocInclude::DontIncWithLines: case DocInclude::HtmlInclude: - break; case DocInclude::LatexInclude: break; case DocInclude::VerbInclude: @@ -479,10 +478,25 @@ DB_VIS_C popEnabled(); if (!m_hide) { + FileDef *fd; + if (!op->includeFileName().isEmpty()) + { + QFileInfo cfi( op->includeFileName() ); + fd = createFileDef( cfi.dirPath().utf8(), cfi.fileName().utf8() ); + } + Doxygen::parserManager->getParser(m_langExt) ->parseCode(m_ci,op->context(), op->text(),langExt,op->isExample(), - op->exampleFile()); + op->exampleFile(), + fd, // fileDef + op->line(), // startLine + -1, // endLine + FALSE, // inline fragment + 0, // memberDef + op->showLineNo() // show line numbers + ); + if (fd) delete fd; } pushEnabled(); m_hide=TRUE; |