mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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/trunk@27875 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8795db1740
commit
8382d7a9dc
@ -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