mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
* 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
This commit is contained in:
parent
3114ce609c
commit
3a8121ddee
@ -1321,13 +1321,13 @@ def convert_url(document):
|
|||||||
j = find_token(document.body, "target", i)
|
j = find_token(document.body, "target", i)
|
||||||
if j == -1:
|
if j == -1:
|
||||||
document.warning("Malformed LyX document: Can't find target for url inset")
|
document.warning("Malformed LyX document: Can't find target for url inset")
|
||||||
i = j
|
i += 1
|
||||||
continue
|
continue
|
||||||
target = document.body[j][8:-1]
|
target = document.body[j][8:-1]
|
||||||
k = find_token(document.body, "\\end_inset", j)
|
k = find_token(document.body, "\\end_inset", j)
|
||||||
if k == -1:
|
if k == -1:
|
||||||
document.warning("Malformed LyX document: Can't find end of url inset")
|
document.warning("Malformed LyX document: Can't find end of url inset")
|
||||||
i = k
|
i = j
|
||||||
continue
|
continue
|
||||||
newstuff = ["\\begin_inset Flex URL",
|
newstuff = ["\\begin_inset Flex URL",
|
||||||
"status collapsed", "",
|
"status collapsed", "",
|
||||||
@ -1337,7 +1337,7 @@ def convert_url(document):
|
|||||||
"\\end_layout",
|
"\\end_layout",
|
||||||
""]
|
""]
|
||||||
document.body[i:k] = newstuff
|
document.body[i:k] = newstuff
|
||||||
i = k
|
i = i + len(newstuff)
|
||||||
|
|
||||||
def convert_ams_classes(document):
|
def convert_ams_classes(document):
|
||||||
tc = document.textclass
|
tc = document.textclass
|
||||||
|
Loading…
Reference in New Issue
Block a user