[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/2.0.x] Avoid processing multiple times the same paragraph when converting latex arguments. (che
From:       Richard Heck <rgheck () lyx ! org>
Date:       2014-05-29 15:30:17
Message-ID: 20140529153017.25A012802CD () lyx ! lyx ! org
[Download RAW message or body]

commit e1350913ba5d67d999521c721542c541af520b96
Author: Enrico Forestieri <forenr@lyx.org>
Date:   Thu May 29 11:05:34 2014 +0200

    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 eb216bf..139eb51 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -1573,7 +1573,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):

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic