commit 3f477434658dde0ad3694532ba935579e3a1372a
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Aug 30 15:49:36 2026 +0200
lyx2lyx: delete lyxcode local layout on reversion unconditionally
It might be present without an actual LyX-Code
---
lib/lyx2lyx/lyx_2_6.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 02aeee4591..eff5237f6f 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -2026,7 +2026,7 @@ lyxcode_local_layout = [
" DocBookTagType paragraph",
" DocBookAttr language='lyx'",
"End",
- "### End of insertion by lyx2lyx (legacy LyX-Code) ###" "",
+ "### End of insertion by lyx2lyx (legacy LyX-Code) ###"
]
@@ -2040,10 +2040,6 @@ def convert_lyxcode(document):
def revert_lyxcode(document):
"""Revert LyX-Code local layout"""
- i = find_token(document.body, "\\begin_layout LyX-Code", 0)
- if i == -1:
- return
-
document.del_local_layout(lyxcode_local_layout)
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs