From: Juergen Spitzmueller Date: Thu, 15 Aug 2024 11:11:20 +0000 (+0200) Subject: style X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bb3dd3c9f226064553279d2dbfcde1c6f52df132;p=lyx.git style --- diff --git a/lib/lyx2lyx/parser_tools.py b/lib/lyx2lyx/parser_tools.py index 148938cdb3..254f065781 100644 --- a/lib/lyx2lyx/parser_tools.py +++ b/lib/lyx2lyx/parser_tools.py @@ -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