From e65445a65062df40e7295c86abfc59c52681c2c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 21 Jul 2009 13:14:02 +0000 Subject: [PATCH] lyx_2_0.py: fix glue length reversion routine git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30728 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 5e8246444a..cbc4306605 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1075,10 +1075,10 @@ def revert_hspace_glue_lengths(document): length = latex_length(length) # latex_length returns "bool,length" m = length.find(",") - percent = length[:m] length = length[m+1:] - # revert the HSpace inset to ERT - if percent == "True": + document.warning("length: " + length) + # allow leading - + if length.rfind("-") <> 0 or (length.rfind("-") == 0 and length.rfind("+") > -1): if star == True: subst = [put_cmd_in_ert("\\hspace*{" + length + "}")] else: -- 2.39.2