lyx2lyx: correct placement of (new) local layout

This ended up inside modules sometimes.
This commit is contained in:
Juergen Spitzmueller 2019-08-23 18:38:55 +02:00
parent c7d4d81385
commit 69ed8cb89a

View File

@ -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")