Avoid processing multiple times the same paragraph when converting latex arguments.

(cherry picked from commit 0080201977)
This commit is contained in:
Enrico Forestieri 2014-05-29 11:05:34 +02:00 committed by Richard Heck
parent 20214ee224
commit b851a60376

View File

@ -1583,7 +1583,7 @@ def convert_latexargs(document):
if argnr > allowed_opts and argnr < first_req: if argnr > allowed_opts and argnr < first_req:
argnr = first_req argnr = first_req
document.body[p] = "\\begin_inset Argument %d" % argnr document.body[p] = "\\begin_inset Argument %d" % argnr
i += 1 i = parend + 1
def revert_latexargs(document): def revert_latexargs(document):