commit 1140ed1ed345f37c43339601c7fde1dd2ef65806
Author: Kornel Benko <[email protected]>
Date: Sat Aug 4 13:36:38 2018 +0200
Revert "Do not increment start for find(phrase) while looping over phrases"
This reverts commit e7b3b62b0bf9a9f611bf8021556b8584ac0115c3.
The 'for phrase in' loop is organized differently to master.
Thanks Enrico
---
lib/lyx2lyx/lyx_2_2.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py
index f027017..96b456a 100644
--- a/lib/lyx2lyx/lyx_2_2.py
+++ b/lib/lyx2lyx/lyx_2_2.py
@@ -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]