mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
* 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:
parent
01309db9b9
commit
e168fbfc71
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user