* lyx_1_6.py (revert_wrapplacement):

- fix reversion of placement argument (bug 5618).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-15 09:45:52 +00:00
parent 8795db1740
commit 8382d7a9dc

View File

@ -2319,10 +2319,11 @@ def revert_wrapplacement(document):
document.warning("Malformed LyX document: Couldn't find placement parameter of wrap float.")
i += 1
continue
r = re.compile("placement (o|i|l|r)")
r = re.compile("placement (o|i|l|r|O|I|L|R)")
m = r.match(document.body[j])
if m == None:
document.warning("Malformed LyX document: Placement option isn't O|I|R|L!")
else:
document.body[j] = "placement " + m.group(1).lower()
i = j