From aa7e6b37788708999c8ecfb498a56df31296d838 Mon Sep 17 00:00:00 2001 From: spitz Date: Thu, 6 Aug 2009 08:05:31 +0000 Subject: [PATCH] * lyx2lyx/lyx_1_6.py: fix convert_url routine (bug 6121). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30869 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index d11ed22974..43ea288ca4 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1321,13 +1321,13 @@ def convert_url(document): j = find_token(document.body, "target", i) if j == -1: document.warning("Malformed LyX document: Can't find target for url inset") - i = j + i += 1 continue target = document.body[j][8:-1] k = find_token(document.body, "\\end_inset", j) if k == -1: document.warning("Malformed LyX document: Can't find end of url inset") - i = k + i = j continue newstuff = ["\\begin_inset Flex URL", "status collapsed", "", @@ -1337,7 +1337,7 @@ def convert_url(document): "\\end_layout", ""] document.body[i:k] = newstuff - i = k + i = i + len(newstuff) def convert_ams_classes(document): tc = document.textclass -- 2.11.4.GIT