Register verbatim includes with the outliner.
This commit is contained in:
Richard Kimberly Heck 2019-07-11 16:20:10 -04:00
parent 83afe8aa19
commit 6960bab65c

View File

@ -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");