mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 08:37:52 +00:00
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
This commit is contained in:
parent
f00f149756
commit
e65445a650
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user