mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +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