mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Handle nested \cprotect
This commit is contained in:
parent
6d5e179985
commit
51466fe649
@ -1088,6 +1088,11 @@ InsetText::XHTMLOptions operator|(InsetText::XHTMLOptions a1, InsetText::XHTMLOp
|
||||
|
||||
bool InsetText::needsCProtection() const
|
||||
{
|
||||
// Nested cprotect content needs \cprotect
|
||||
// on each level
|
||||
if (hasCProtectContent())
|
||||
return true;
|
||||
|
||||
if (!getLayout().needsCProtect())
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user