]> git.lyx.org Git - lyx.git/commitdiff
style
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 15 Aug 2024 11:11:20 +0000 (13:11 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 15 Aug 2024 11:11:20 +0000 (13:11 +0200)
lib/lyx2lyx/parser_tools.py

index 148938cdb35335e1b78d9530b4478f87f7bfbcab..254f065781856c37644984d3005975eec0debbed 100644 (file)
@@ -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