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 a96845660e)
This commit is contained in:
Kornel Benko 2018-08-02 22:51:36 +02:00
parent 7de98f7dbc
commit e7b3b62b0b

View 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]