diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index f027017a94..96b456accb 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -756,6 +756,7 @@ def convert_phrases(document): continue j = document.body[i].find(phrase) if j == -1: + i += 1 continue if not is_part_of_converted_phrase(document.body[i], j, phrase): front = document.body[i][:j]