From: Enrico Forestieri Date: Thu, 29 May 2014 09:05:34 +0000 (+0200) Subject: Avoid processing multiple times the same paragraph when converting latex arguments. X-Git-Tag: 2.1.1~40 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b851a60376737a71aac8c7ebe9d9e7ab5f15fe1f;p=features.git Avoid processing multiple times the same paragraph when converting latex arguments. (cherry picked from commit 00802019771bd1b9779d3b39899089abfc38201f) --- diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index eccf522edf..4dab15b06b 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -1583,7 +1583,7 @@ def convert_latexargs(document): if argnr > allowed_opts and argnr < first_req: argnr = first_req document.body[p] = "\\begin_inset Argument %d" % argnr - i += 1 + i = parend + 1 def revert_latexargs(document):