From 16629ea56fc4713d6437220a88e230c9de5b88c3 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 23 Aug 2019 18:38:55 +0200 Subject: [PATCH] lyx2lyx: correct placement of (new) local layout This ended up inside modules sometimes. --- lib/lyx2lyx/LyX.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 22addfb7e0..b91350100e 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") -- 2.39.5