]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
Update RELEASE_NOTES
[lyx.git] / src / Encoding.cpp
index 0c8d085a19689f51b445da9067ed06849d37e6bc..d0610efb2e2af646dd60f2355dab5d65744bfa42 100644 (file)
@@ -389,6 +389,10 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
                                if (command == cmd) {
                                        docstring value;
                                        value += unicodeSymbol.first;
+                                       needsTermination = !unicodeSymbol.second.mathNoTermination();
+                                       if (req && unicodeSymbol.second.mathFeature()
+                                               && !unicodeSymbol.second.mathPreamble().empty())
+                                                       req->insert(unicodeSymbol.second.mathPreamble());
                                        return value;
                                }
                        }
@@ -398,6 +402,10 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype,
                                if (command == cmd) {
                                        docstring value;
                                        value += unicodeSymbol.first;
+                                       needsTermination = !unicodeSymbol.second.textNoTermination();
+                                       if (req && unicodeSymbol.second.textFeature()
+                                               && !unicodeSymbol.second.textPreamble().empty())
+                                               req->insert(unicodeSymbol.second.textPreamble());
                                        return value;
                                }
                        }