commit 6960bab65c07f36d3ab3b401214fc4f0b36f39ea
Author: Richard Kimberly Heck <[email protected]>
Date:   Thu Jul 11 16:20:10 2019 -0400

    Fix bug #11612.
    
    Register verbatim includes with the outliner.
---
 src/insets/InsetInclude.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index e99645d..2810515 100755
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -1314,8 +1314,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");

Reply via email to