]> git.lyx.org Git - features.git/commitdiff
Skip paragraph parameters for dash conversion
authorGeorg Baum <baum@lyx.org>
Sun, 19 Jun 2016 15:05:13 +0000 (17:05 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 19 Jun 2016 15:05:13 +0000 (17:05 +0200)
Some of them are directly passed to LaTeX, but for all of them a token
\twohyphens or \threehyphens is not valid. This fixes bug #10243.

lib/lyx2lyx/lyx_2_2.py

index 34490d8dfcc522a0580f7b50f311011febc405a9..25c4ba06f0ac30a910caa73c33a312ede496aa3f 100644 (file)
@@ -632,6 +632,10 @@ def convert_dashes(document):
             else:
                 i = j
             continue
+        if len(words) > 0 and words[0] in ["\\leftindent", "\\paragraph_spacing", "\\align", "\\labelwidthstring"]:
+            # skip paragraph parameters (bug 10243)
+            i += 1
+            continue
         while True:
             j = document.body[i].find("--")
             if j == -1: