commit c8397470558798cb7de2966c3b73d35370d147a8
Author: Richard Kimberly Heck <[email protected]>
Date: Thu Jul 11 16:20:10 2019 -0400
Fix bug #11612.
Register verbatim includes with the outliner.
(cherry picked from commit 6960bab65c07f36d3ab3b401214fc4f0b36f39ea)
---
src/insets/InsetInclude.cpp | 8 ++++++--
status.23x | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 7c0d6ce..19fbeae 100644
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -1258,8 +1258,12 @@ void InsetInclude::addToToc(DocIterator const & cpit,
bool output_active,
b.pushItem(cpit, screenLabel(), output_active);
InsetListingsParams p(to_utf8(params()["lstparams"]));
b.argumentItem(from_utf8(p.getParamValue("caption")));
- b.pop();
- } else {
+ b.pop();
+ } else if (isVerbatim(params())) {
+ TocBuilder & b = backend.builder("child");
+ b.pushItem(cpit, screenLabel(), output_active);
+ b.pop();
+ } else {
Buffer const * const childbuffer = getChildBuffer();
TocBuilder & b = backend.builder("child");
diff --git a/status.23x b/status.23x
index b3c9187..bec2dd0 100644
--- a/status.23x
+++ b/status.23x
@@ -100,6 +100,8 @@ What's new
- Fix right and left layout alignment (in workarea) with RTL (bug 11606).
+- Show filenames for verbatim includes in outliner (bug 11612).
+
* INTERNALS