j = find_end_of(self.header, i, "\\begin_local_layout", "\\end_local_layout")
if j == -1:
j = find_end_of(self.header, i, "\\begin_local_layout", "\\end_local_layout")
if j == -1:
- def del_local_layout(self, old_layout):
- " Delete `old_layout` from local layouts, return success."
- i = find_complete_lines(self.header, old_layout)
+ def del_local_layout(self, layout_def):
+ " Delete `layout_def` from local layouts, return success."
+ i = find_complete_lines(self.header, layout_def)