mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Simplify this complicated routine of mine now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36116 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6b81613f9c
commit
5fe584cc9c
@ -1282,13 +1282,8 @@ def revert_lyx_version(document):
|
||||
# type "lyxinfo"
|
||||
# arg "version"
|
||||
# \end_inset
|
||||
# but we shall try to be forgiving.
|
||||
arg = typ = ""
|
||||
for k in range(i, j):
|
||||
if document.body[k].startswith("arg"):
|
||||
arg = document.body[k][3:].strip().strip('"')
|
||||
if document.body[k].startswith("type"):
|
||||
typ = document.body[k][4:].strip().strip('"')
|
||||
typ = get_quoted_value(document.body, "type", i, j)
|
||||
arg = get_quoted_value(document.body, "arg", i, j)
|
||||
if arg != "version" or typ != "lyxinfo":
|
||||
i = j + 1
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user