From: Juergen Spitzmueller Date: Fri, 23 Aug 2019 16:38:55 +0000 (+0200) Subject: lyx2lyx: correct placement of (new) local layout X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=16629ea56fc4713d6437220a88e230c9de5b88c3;p=features.git lyx2lyx: correct placement of (new) local layout This ended up inside modules sometimes. --- 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")