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

This reverts commit e7b3b62b0b.
The 'for phrase in' loop is organized differently to master.

Thanks Enrico
This commit is contained in:
Kornel Benko 2018-08-04 13:36:38 +02:00
parent 8bc4f490db
commit 1140ed1ed3

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