From 380475f4dbcccccf1c22f3b411145c5446e16f60 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 20 Jun 2016 20:19:24 +0200 Subject: [PATCH] Skip paragraph parameters for dash conversion 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 | 4 ++++ status.22x | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index d969179652..6567eb4969 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -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: diff --git a/status.22x b/status.22x index 383c6b2705..5054193f54 100644 --- a/status.22x +++ b/status.22x @@ -72,6 +72,8 @@ What's new * LYX2LYX +- Fix paragraph argument conversion for \labelwidthstring etc (bug 10243). + * USER INTERFACE -- 2.39.5