]> git.lyx.org Git - features.git/commitdiff
Fix table rotate conversion to 2.0 format
authorGeorg Baum <baum@lyx.org>
Thu, 1 May 2014 11:48:44 +0000 (13:48 +0200)
committerGeorg Baum <baum@lyx.org>
Thu, 1 May 2014 11:48:44 +0000 (13:48 +0200)
The old code did create invalid documents, since the space between the rotate
flag dn the previous flag was removed.

lib/lyx2lyx/lyx_2_1.py

index 24bb22ee3eef87940675ef6fbeec414b187ebd90..d327d87a36e3f26405b1fb4724b444191be44af4 100644 (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