mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Do not prematurely close \ensuremath or \lyxmathsym on export
This commit is contained in:
parent
9f1b80a2af
commit
1b7dea5c2f
@ -387,7 +387,7 @@ bool ensureMath(WriteStream & os, bool needs_mathmode, bool macro,
|
|||||||
brace = true;
|
brace = true;
|
||||||
}
|
}
|
||||||
os.textMode(true);
|
os.textMode(true);
|
||||||
} else if (macro && brace && !textmode_macro) {
|
} else if (macro && brace && !needs_mathmode && !textmode_macro) {
|
||||||
// This is a user defined macro, not a MathMacro, so we
|
// This is a user defined macro, not a MathMacro, so we
|
||||||
// cannot be sure what mode is needed. We leave it in the
|
// cannot be sure what mode is needed. We leave it in the
|
||||||
// same environment it was entered by closing either \lyxmathsym
|
// same environment it was entered by closing either \lyxmathsym
|
||||||
|
Loading…
Reference in New Issue
Block a user