mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
lyx2lyx: correct placement of (new) local layout
This ended up inside modules sometimes.
This commit is contained in:
parent
c7d4d81385
commit
69ed8cb89a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user