]> git.lyx.org Git - lyx.git/commitdiff
fix convert_index_sc method
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 15 Aug 2024 06:05:31 +0000 (08:05 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 15 Aug 2024 06:05:31 +0000 (08:05 +0200)
lib/lyx2lyx/lyx_2_5.py

index 4f11a6cb790863cb88bc678ed96e46ff65e73ba0..daaefe63f856d18cecf34388be5817a79882b88a 100644 (file)
@@ -661,8 +661,6 @@ def convert_index_sc(document):
                     repl += [ch]
                     repl += put_cmd_in_ert(ec)
                 repl += chunks[-1:]
-                if line[-1:] == ec:
-                    repl += put_cmd_in_ert(ec)
                 document.body[k:k+1] = repl
         i += 1