mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +00:00
My thinko, this time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36068 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
540802f717
commit
b04159cf21
@ -634,7 +634,7 @@ def revert_percent_skip_lengths(document):
|
|||||||
return
|
return
|
||||||
# handle percent lengths
|
# handle percent lengths
|
||||||
percent, length = latex_length(length)
|
percent, length = latex_length(length)
|
||||||
if percent == "True":
|
if percent:
|
||||||
add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
|
add_to_preamble(document, ["% this command was inserted by lyx2lyx"])
|
||||||
add_to_preamble(document, ["\\setlength{\\parskip}{" + length + "}"])
|
add_to_preamble(document, ["\\setlength{\\parskip}{" + length + "}"])
|
||||||
# set defskip to medskip as default
|
# set defskip to medskip as default
|
||||||
@ -663,7 +663,7 @@ def revert_percent_vspace_lengths(document):
|
|||||||
# handle percent lengths
|
# handle percent lengths
|
||||||
percent, length = latex_length(length)
|
percent, length = latex_length(length)
|
||||||
# revert the VSpace inset to ERT
|
# revert the VSpace inset to ERT
|
||||||
if percent == "True":
|
if percent:
|
||||||
if protected:
|
if protected:
|
||||||
subst = put_cmd_in_ert("\\vspace*{" + length + "}")
|
subst = put_cmd_in_ert("\\vspace*{" + length + "}")
|
||||||
else:
|
else:
|
||||||
@ -696,7 +696,7 @@ def revert_percent_hspace_lengths(document):
|
|||||||
# ...and if it used a percent length
|
# ...and if it used a percent length
|
||||||
percent, length = latex_length(length)
|
percent, length = latex_length(length)
|
||||||
# revert the HSpace inset to ERT
|
# revert the HSpace inset to ERT
|
||||||
if percent == "True":
|
if percent:
|
||||||
subst = put_cmd_in_ert("\\hspace" + protected + "{" + length + "}")
|
subst = put_cmd_in_ert("\\hspace" + protected + "{" + length + "}")
|
||||||
document.body[i:j + 1] = subst
|
document.body[i:j + 1] = subst
|
||||||
# if we did a substitution, this will still be ok
|
# if we did a substitution, this will still be ok
|
||||||
|
Loading…
Reference in New Issue
Block a user