Do not increment start for find(phrase) while looping over phrases

The increment will be done at the end of the for-loop.
This commit is contained in:
Kornel Benko 2018-08-02 22:51:36 +02:00
parent b286c6d235
commit a96845660e

View File

@ -758,7 +758,6 @@ def convert_phrases(document):
for phrase in phrases:
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]