]> git.lyx.org Git - features.git/commitdiff
cprotect listings when needed (e.g. in a footnote)
authorScott Kostyshak <skostysh@lyx.org>
Sat, 21 Apr 2018 03:35:30 +0000 (23:35 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 21 Apr 2018 04:49:53 +0000 (00:49 -0400)
This allows to put a non-inline listing in commands, such as a box,
footnote, and margin note.

Fixes #6177 and #9321.

lib/layouts/stdinsets.inc

index 5aca78800623e37067d1b2d2f7a090e8cf1b1a88..fc54ac80eb562f76ba93486c39ae33f23bce62ab 100644 (file)
@@ -361,6 +361,7 @@ InsetLayout Listings
        KeepEmpty             true
        FreeSpacing           true
        ForceLTR              true
+       NeedCProtect          true
        RefPrefix             lst
        HTMLTag               pre
        HTMLStyle