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.
This commit is contained in:
Georg Baum 2016-06-20 20:19:24 +02:00
parent bf06e9338e
commit 380475f4db
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -72,6 +72,8 @@ What's new
* LYX2LYX * LYX2LYX
- Fix paragraph argument conversion for \labelwidthstring etc (bug 10243).
* USER INTERFACE * USER INTERFACE