]> git.lyx.org Git - lyx.git/commitdiff
Do not replace "--" with "\twohyphens" in formula macros.
authorRichard Heck <rgheck@lyx.org>
Thu, 19 Jan 2017 02:47:40 +0000 (21:47 -0500)
committerRichard Heck <rgheck@lyx.org>
Thu, 19 Jan 2017 02:48:35 +0000 (21:48 -0500)
lib/lyx2lyx/lyx_2_2.py

index 6ecc878c44d65167cb4ef795b0633fc495fffbfa..c1fe09857122789cf69538715e796b366ddd8cd8 100644 (file)
@@ -620,7 +620,7 @@ def convert_dashes(document):
     while i < len(document.body):
         words = document.body[i].split()
         if len(words) > 1 and words[0] == "\\begin_inset" and \
-           words[1] in ["CommandInset", "ERT", "External", "Formula", "Graphics", "IPA", "listings"]:
+           words[1] in ["CommandInset", "ERT", "External", "Formula", "FormulaMacro", "Graphics", "IPA", "listings"]:
             # must not replace anything in insets that store LaTeX contents in .lyx files
             # (math and command insets withut overridden read() and write() methods
             # filtering out IPA makes Text::readParToken() more simple