mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Prefer mathmode commands over textmode ones
Translating → to \rightarrow in a \ce inset produces the right glyph. Instead, translating it to \textrightarrow produces a different glyph (β).
This commit is contained in:
parent
c8f056417f
commit
b3db2325ed
@ -1431,7 +1431,7 @@ void writeString(docstring const & s, WriteStream & os)
|
||||
docstring cmd;
|
||||
for (char_type c : s) {
|
||||
try {
|
||||
Encodings::latexMathChar(c, false, os.encoding(), cmd, space);
|
||||
Encodings::latexMathChar(c, true, os.encoding(), cmd, space);
|
||||
os << cmd;
|
||||
os.pendingSpace(space);
|
||||
} catch (EncodingException const & e) {
|
||||
|
Loading…
Reference in New Issue
Block a user