]> git.lyx.org Git - lyx.git/commitdiff
Do not increment start for find(phrase) while looping over phrases
authorKornel Benko <kornel@lyx.org>
Thu, 2 Aug 2018 20:51:36 +0000 (22:51 +0200)
committerKornel Benko <kornel@lyx.org>
Fri, 3 Aug 2018 17:54:24 +0000 (19:54 +0200)
The increment will be done at the end of the for-loop.

(cherry picked from commit a96845660eccd9feee738e56215377ac14a41ceb)

lib/lyx2lyx/lyx_2_2.py

index 96b456accb7c0746cefbf930faceb5096a39a4c4..f027017a94c4dca84317b92c48f44a77156f300a 100644 (file)
@@ -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]