commit b0664e0c98b92b23442e9e344b2c6ad124c88ac9
Author: Georg Baum <[email protected]>
Date: Thu May 1 13:48:44 2014 +0200
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.
diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index 24bb22e..d327d87 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -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