From: Uwe Stöhr Date: Tue, 21 Jul 2009 13:14:02 +0000 (+0000) Subject: lyx_2_0.py: fix glue length reversion routine X-Git-Tag: 2.0.0~5930 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e65445a65062df40e7295c86abfc59c52681c2c3;p=features.git 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 --- 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: