* lyx_1_6.py (revert_wrapplacement):

- fix reversion of placement argument (bug 5618).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-15 09:46:48 +00:00
parent 01309db9b9
commit e168fbfc71

View File

@ -2319,11 +2319,12 @@ 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!")
document.body[j] = "placement " + m.group(1).lower()
else:
document.body[j] = "placement " + m.group(1).lower()
i = j