lyx2lyx: fix del_module method

This commit is contained in:
Juergen Spitzmueller 2019-08-13 07:28:12 +02:00
parent 73afc41e5e
commit 2a07efa6f7

View File

@ -621,7 +621,7 @@ class LyX_base:
modlist = self.get_module_list() modlist = self.get_module_list()
if module not in modlist: if module not in modlist:
return False 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 return True
def get_module_list(self): def get_module_list(self):