mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
* lyx_2_0.py (revert_hspace_glue_lengths):
- proceed after non-glue hspace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30739 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9a594992d2
commit
8d898ad5b7
@ -1022,7 +1022,7 @@ def revert_percent_hspace_lengths(document):
|
||||
if i == -1:
|
||||
break
|
||||
star = (document.body[i].find("\\hspace*{}") != -1)
|
||||
# only revert if a custom length was set and when
|
||||
# only revert if a custom length was set and if
|
||||
# it used a percent length
|
||||
length = get_value(document.body, '\\length', i+1)
|
||||
if length == '':
|
||||
@ -1057,8 +1057,7 @@ def revert_hspace_glue_lengths(document):
|
||||
return
|
||||
# only revert if the length contains a plus or minus at pos != 0
|
||||
glue = re.compile(r'.+[\+-]')
|
||||
if glue.search(length) == None:
|
||||
break
|
||||
if glue.search(length):
|
||||
# handle percent lengths
|
||||
length = latex_length(length)
|
||||
# latex_length returns "bool,length"
|
||||
|
Loading…
Reference in New Issue
Block a user