X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2Flyx_1_5.py;h=d3de88f9981148e5d3b50d27f038f5bbc944e965;hb=0aaf2f2008b5aa8a5e64655fcc83cbe450a39486;hp=e7778578a7e303838931a889bdd1840b4d47cb47;hpb=13bf36618cb74892cc200107b87e03b785c7b4c0;p=lyx.git diff --git a/lib/lyx2lyx/lyx_1_5.py b/lib/lyx2lyx/lyx_1_5.py index e7778578a7..d3de88f998 100644 --- a/lib/lyx2lyx/lyx_1_5.py +++ b/lib/lyx2lyx/lyx_1_5.py @@ -15,7 +15,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA """ Convert files to the file format generated by lyx 1.5""" @@ -676,7 +676,7 @@ def revert_commandparams(document): if i == -1: break name = document.body[i].split()[2] - j = find_end_of_inset(document.body, i + 1) + j = find_end_of_inset(document.body, i) preview_line = "" option1 = "" option2 = "" @@ -1597,7 +1597,7 @@ def revert_graphics_rotation(document): def convert_tableborder(document): - # The problematic is: LyX double the table cell border as it ignores the "|" character in + # The problem is: LyX doubles the table cell border as it ignores the "|" character in # the cell arguments. A fix takes care of this and therefore the "|" has to be removed i = 0 while i < len(document.body): @@ -1606,7 +1606,7 @@ def convert_tableborder(document): # the two tokens have to be in one line if (h != -1 and k != -1): # delete the "|" - document.body[i] = document.body[i][:k] + document.body[i][k+1:len(document.body[i])-1] + document.body[i] = document.body[i][:k] + document.body[i][k+1:len(document.body[i])] i = i + 1