mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
lyx2lyx/lyx_1_6.py: small tweak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d545923349
commit
643780f4e4
@ -340,11 +340,11 @@ def revert_wrapfig_options(document):
|
||||
"Revert optional options for wrap floats (wrapfig)."
|
||||
i = 0
|
||||
while True:
|
||||
i = find_tokens(document.body, "lines", i)
|
||||
i = find_token(document.body, "lines", i)
|
||||
if i == -1:
|
||||
return
|
||||
del document.body[i]
|
||||
j = find_tokens(document.body, "overhang", i+1)
|
||||
j = find_token(document.body, "overhang", i+1)
|
||||
if j != i + 1 and j != -1:
|
||||
document.warning("Malformed LyX document: Couldn't find overhang parameter of wrap float.")
|
||||
if j == -1:
|
||||
|
Loading…
Reference in New Issue
Block a user