commit 69ed8cb89abd291b19ca2a3423d1f368a0d67f71
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Aug 23 18:38:55 2019 +0200
lyx2lyx: correct placement of (new) local layout
This ended up inside modules sometimes.
---
lib/lyx2lyx/LyX.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py
index 22addfb..b913501 100644
--- a/lib/lyx2lyx/LyX.py
+++ b/lib/lyx2lyx/LyX.py
@@ -797,7 +797,7 @@ class LyX_base:
# this should not happen
self.warning("Malformed LyX document! No \\language header
found!")
return
- self.header[k-1 : k-1] = ["\\begin_local_layout",
"\\end_local_layout"]
+ self.header[k : k] = ["\\begin_local_layout", "\\end_local_layout"]
i = k - 1
j = find_end_of(self.header, i, "\\begin_local_layout",
"\\end_local_layout")