diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index fca9d518e1..4896ff6921 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -271,6 +271,14 @@ def remove_oldert(lines): lines[i:j+1] = new i = i+1 + i = 0 + while 1: + i = find_token(lines, "\\latex default", i) + if i == -1: + break + del lines[i] + + def remove_oldertinset(lines): i = 0 while 1: