From a6fbb8677e14910727e0957b5e887442997d3b6e Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 15 Aug 2024 08:05:31 +0200 Subject: [PATCH] fix convert_index_sc method --- lib/lyx2lyx/lyx_2_5.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_5.py b/lib/lyx2lyx/lyx_2_5.py index 4f11a6cb79..daaefe63f8 100644 --- a/lib/lyx2lyx/lyx_2_5.py +++ b/lib/lyx2lyx/lyx_2_5.py @@ -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