From: Richard Heck Date: Thu, 4 Nov 2010 16:00:33 +0000 (+0000) Subject: My thinko, this time. X-Git-Tag: 2.0.0~2047 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b04159cf2187c2c9dd74a8113cf9b01a60f67369;p=features.git My thinko, this time. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36068 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 647ce1aa27..e6f0b76b3c 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -634,7 +634,7 @@ def revert_percent_skip_lengths(document): return # handle percent lengths percent, length = latex_length(length) - if percent == "True": + if percent: add_to_preamble(document, ["% this command was inserted by lyx2lyx"]) add_to_preamble(document, ["\\setlength{\\parskip}{" + length + "}"]) # set defskip to medskip as default @@ -663,7 +663,7 @@ def revert_percent_vspace_lengths(document): # handle percent lengths percent, length = latex_length(length) # revert the VSpace inset to ERT - if percent == "True": + if percent: if protected: subst = put_cmd_in_ert("\\vspace*{" + length + "}") else: @@ -696,7 +696,7 @@ def revert_percent_hspace_lengths(document): # ...and if it used a percent length percent, length = latex_length(length) # revert the HSpace inset to ERT - if percent == "True": + if percent: subst = put_cmd_in_ert("\\hspace" + protected + "{" + length + "}") document.body[i:j + 1] = subst # if we did a substitution, this will still be ok