mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
needsCProtection: consider LaTeXType "none"
This commit is contained in:
parent
c082c3a0f6
commit
78aed77c3d
@ -1091,8 +1091,9 @@ bool InsetText::needsCProtection() const
|
||||
if (!getLayout().needsCProtect())
|
||||
return false;
|
||||
|
||||
// Environments need cprotection regardless the content
|
||||
if (getLayout().latextype() == InsetLayout::ENVIRONMENT)
|
||||
// Environments and "no latex" types (e.g., knitr chunks)
|
||||
// need cprotection regardless the content
|
||||
if (getLayout().latextype() != InsetLayout::COMMAND)
|
||||
return true;
|
||||
|
||||
// Commands need cprotection if they contain specific chars
|
||||
|
Loading…
Reference in New Issue
Block a user