]> git.lyx.org Git - features.git/commitdiff
Skip paragraph parameters for dash conversion
authorGeorg Baum <baum@lyx.org>
Mon, 20 Jun 2016 18:19:24 +0000 (20:19 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 20 Jun 2016 18:22:23 +0000 (20:22 +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
status.22x

index d969179652ffc4eb4b56ff1d42cfdd5c632cf0f6..6567eb4969570f0f5205b36b599fe58894b8fe2c 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:
index 383c6b2705858fbdabaf9f83f2ca8b674db192b5..5054193f5405f2c5263190c3b3c1d97c70762ebb 100644 (file)
@@ -72,6 +72,8 @@ What's new
 
 * LYX2LYX
 
+- Fix paragraph argument conversion for \labelwidthstring etc (bug 10243).
+
 
 
 * USER INTERFACE