X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2FLyX.py;h=3d62da5d4b786985d3ca8c8b523ac1190d4e1ead;hb=6ab3be039ee0d74bbb7782bae8e1e0b278d14b3d;hp=24a12708f23a449a69e43473d5e303ed7ad8b8ce;hpb=110247f0b74d630a84305b19cf615adca3c8ae61;p=lyx.git diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 24a12708f2..3d62da5d4b 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -621,7 +621,7 @@ class LyX_base: modlist = self.get_module_list() if module not in modlist: return False - self.set_module_list([line for line in modlist if line != "ruby"]) + self.set_module_list([line for line in modlist if line != module]) return True def get_module_list(self): @@ -797,8 +797,8 @@ 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"] - i = k - 1 + self.header[k : k] = ["\\begin_local_layout", "\\end_local_layout"] + i = k j = find_end_of(self.header, i, "\\begin_local_layout", "\\end_local_layout") if j == -1: