]> git.lyx.org Git - features.git/commitdiff
Amend 348b3e5e49
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 6 Jan 2019 14:19:50 +0000 (15:19 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 6 Jan 2019 14:19:50 +0000 (15:19 +0100)
thinko!

lib/lyx2lyx/lyx_2_2.py

index b336f8b44651657add9e7e99b80a2002091ff4ee..73765bb7683ae65e564bdbfc1747471afd3ffbae 100644 (file)
@@ -1373,11 +1373,11 @@ def revert_jss(document):
         i = 0
         while True:
             i = find_token(document.body, "\\begin_inset Flex " + iltype, i)
-            if i != -1:
+            if i == -1:
                 break
 
-            if iltype == "Code" and document.body[i][-1] != "e":
-                # Code Chunk inset. Continue
+            if document.body[i] != "\\begin_inset Flex " + iltype:
+                # Not an exact match!
                 i += 1
                 continue