mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +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
|
||||
# remove only outer pair of quotes,
|
||||
# hence do not use strip('"')
|
||||
if val[:1] == '"':
|
||||
if val.startswith('"'):
|
||||
val = val[1:]
|
||||
if val[-1:] == '"':
|
||||
if val.endswith('"'):
|
||||
val = val[:-1]
|
||||
|
||||
return val
|
||||
|
Loading…
Reference in New Issue
Block a user