]> git.lyx.org Git - lyx.git/commit
Add NeedMBoxProtect [inset]layout option
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 12 Mar 2019 13:08:05 +0000 (14:08 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 12 Mar 2019 13:08:05 +0000 (14:08 +0100)
commit8b92a2a689c2548a263065a24c0d3aa917785cce
treede74b89b987f25392d301f6f41ac69fe4927e6ed
parentde78dc8e79e2cf85fbf68b702641f062f5593871
Add NeedMBoxProtect [inset]layout option

This accesses the inulemcmd output param which protects specific commands
(\cite, \ref) in an \mbox.

This is needed in ulem and soul commands, since their complex
detokenization makes such commands (who produce multiple words via local
assignment) fail.

So now it is possible to properly support ulem and soul via
[inset]layout

Fixes a case reported in #9404
12 files changed:
lib/doc/Customization.lyx
lib/layouts/pdfcomment.module
lib/scripts/layout2layout.py
src/Layout.cpp
src/Layout.h
src/OutputParams.h
src/TextClass.cpp
src/insets/InsetCaption.cpp
src/insets/InsetLayout.cpp
src/insets/InsetLayout.h
src/insets/InsetText.cpp
src/output_latex.cpp