mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Encoding::fromLaTeXCommand: properly record requirements when exiting early
This commit is contained in:
parent
0c73df6efb
commit
b5b3f56abb
@ -390,6 +390,9 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
|
|||||||
docstring value;
|
docstring value;
|
||||||
value += unicodeSymbol.first;
|
value += unicodeSymbol.first;
|
||||||
needsTermination = !unicodeSymbol.second.mathNoTermination();
|
needsTermination = !unicodeSymbol.second.mathNoTermination();
|
||||||
|
if (req && unicodeSymbol.second.mathFeature()
|
||||||
|
&& !unicodeSymbol.second.mathPreamble().empty())
|
||||||
|
req->insert(unicodeSymbol.second.mathPreamble());
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -400,6 +403,9 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
|
|||||||
docstring value;
|
docstring value;
|
||||||
value += unicodeSymbol.first;
|
value += unicodeSymbol.first;
|
||||||
needsTermination = !unicodeSymbol.second.textNoTermination();
|
needsTermination = !unicodeSymbol.second.textNoTermination();
|
||||||
|
if (req && unicodeSymbol.second.textFeature()
|
||||||
|
&& !unicodeSymbol.second.textPreamble().empty())
|
||||||
|
req->insert(unicodeSymbol.second.textPreamble());
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user