mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
style
This commit is contained in:
parent
54eff37ac0
commit
bb3dd3c9f2
@ -432,9 +432,9 @@ def get_quoted_value(lines, token, start=0, end=0, default="", delete=False):
|
|||||||
return default
|
return default
|
||||||
# remove only outer pair of quotes,
|
# remove only outer pair of quotes,
|
||||||
# hence do not use strip('"')
|
# hence do not use strip('"')
|
||||||
if val[:1] == '"':
|
if val.startswith('"'):
|
||||||
val = val[1:]
|
val = val[1:]
|
||||||
if val[-1:] == '"':
|
if val.endswith('"'):
|
||||||
val = val[:-1]
|
val = val[:-1]
|
||||||
|
|
||||||
return val
|
return val
|
||||||
|
Loading…
Reference in New Issue
Block a user