From bb876f85ae1bcc2d73e7e876d142d8bd5475c444 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 1 May 2014 13:48:44 +0200 Subject: [PATCH] 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 b0664e0c98b92b23442e9e344b2c6ad124c88ac9) --- lib/lyx2lyx/lyx_2_1.py | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 24bb22ee3e..d327d87a36 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 diff --git a/status.20x b/status.20x index 99e7b79588..d2077bbdcc 100644 --- a/status.20x +++ b/status.20x @@ -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