Fix table rotate conversion to 2.0 format

The old code did create invalid documents, since the space between the rotate
flag dn the previous flag was removed.
(cherry picked from commit b0664e0c98)
This commit is contained in:
Georg Baum 2014-05-01 13:48:44 +02:00 committed by Richard Heck
parent 09540c682e
commit bb876f85ae
2 changed files with 3 additions and 1 deletions

View File

@ -911,7 +911,7 @@ def revert_cell_rotation(document):
document.body[i] = rgx.sub('', document.body[i])
elif value == "90":
rgx = re.compile(r' rotate="[^"]+?"')
document.body[i] = rgx.sub('rotate="true"', document.body[i])
document.body[i] = rgx.sub(' rotate="true"', document.body[i])
else:
rgx = re.compile(r' rotate="[^"]+?"')
load_rotating = True

View File

@ -49,6 +49,8 @@ What's new
- Fix use math package settings conversion from 2.0 to 2.1 format (bug 9069).
- Fix table cell rotation conversion from 2.1 to 2.0 format.
* DOCUMENT INPUT/OUTPUT