[LyX/master] style
Juergen Spitzmueller
spitz at lyx.org
Thu Aug 15 11:11:46 UTC 2024
commit bb3dd3c9f226064553279d2dbfcde1c6f52df132
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Aug 15 13:11:20 2024 +0200
style
---
lib/lyx2lyx/parser_tools.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
More information about the lyx-cvs
mailing list