commit 5cb5d2cb5a5c369cabcb784899f4a00c7eaf6aa3
Author: Richard Heck <[email protected]>
Date: Wed Jan 18 21:47:40 2017 -0500
Do not replace "--" with "\twohyphens" in formula macros.
---
lib/lyx2lyx/lyx_2_2.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py
index 6ecc878..c1fe098 100644
--- a/lib/lyx2lyx/lyx_2_2.py
+++ b/lib/lyx2lyx/lyx_2_2.py
@@ -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