commit 93c718841c170bae6e80a86a908eab9e8544ce1c
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Aug 27 15:16:55 2026 +0200
Improve revert_alltt
---
lib/lyx2lyx/lyx_2_6.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 9cb38fae1e..02aeee4591 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -2056,7 +2056,7 @@ def revert_alltt(document):
i = 0
while True:
- i = find_token(document.body, "\\begin_layout Code", i)
+ i = find_token_exact(document.body, "\\begin_layout Code", i)
if i == -1:
return
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs