cprotect listings when needed (e.g. in a footnote)

This allows to put a non-inline listing in commands, such as a box,
footnote, and margin note.

Fixes #6177 and #9321.
This commit is contained in:
Scott Kostyshak 2018-04-20 23:35:30 -04:00
parent 2477493cf5
commit 6d5e179985

View File

@ -361,6 +361,7 @@ InsetLayout Listings
KeepEmpty true
FreeSpacing true
ForceLTR true
NeedCProtect true
RefPrefix lst
HTMLTag pre
HTMLStyle