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-19 17:05:13 +02:00
parent b425e3108e
commit 5ab19af782

View 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: