From: Kornel Benko Date: Thu, 2 Aug 2018 20:51:36 +0000 (+0200) Subject: Do not increment start for find(phrase) while looping over phrases X-Git-Tag: 2.3.1~36 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e7b3b62b0bf9a9f611bf8021556b8584ac0115c3;p=lyx.git Do not increment start for find(phrase) while looping over phrases The increment will be done at the end of the for-loop. (cherry picked from commit a96845660eccd9feee738e56215377ac14a41ceb) --- diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index 96b456accb..f027017a94 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -756,7 +756,6 @@ 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]