]> git.lyx.org Git - lyx.git/commitdiff
Revert "Do not increment start for find(phrase) while looping over phrases"
authorKornel Benko <kornel@lyx.org>
Sat, 4 Aug 2018 11:36:38 +0000 (13:36 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 4 Aug 2018 11:36:38 +0000 (13:36 +0200)
This reverts commit e7b3b62b0bf9a9f611bf8021556b8584ac0115c3.
The 'for phrase in' loop is organized differently to master.

Thanks Enrico

lib/lyx2lyx/lyx_2_2.py

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