commit 043f7f9fe22956c4e3d45613c16d5cd8a86463d1
Author: Juergen Spitzmueller <[email protected]>
Date: Wed Apr 16 10:23:10 2025 +0200
Amend 644ae738c8
Ignore surrounding whitespace also in input string
---
lib/lyx2lyx/lyx2lyx_tools.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/lyx2lyx/lyx2lyx_tools.py b/lib/lyx2lyx/lyx2lyx_tools.py
index 04c8e92e86..655bd7b264 100644
--- a/lib/lyx2lyx/lyx2lyx_tools.py
+++ b/lib/lyx2lyx/lyx2lyx_tools.py
@@ -123,7 +123,7 @@ def add_to_preamble(document, text):
# we need a perfect match
matched = True
for line in text:
- if i >= prelen or line != document.preamble[i].strip():
+ if i >= prelen or line.strip() != document.preamble[i].strip():
matched = False
break
i += 1
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs