From a58f6d80258979e049afe196eddb81c84ab0c85b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 6 Feb 2008 20:23:44 +0000 Subject: [PATCH] lyx_1_6.py: remove the serial letter routine because due to r22811 more ERT would have to be converted. By the removal I follow the rule not to convert ERT. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22813 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 0744cd0be3..394e88a0b6 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1223,29 +1223,6 @@ def revert_widesideways(document): i = i + 1 -def convert_serial_letter(document): - " adds an EndLetter environment to scrlttr2 documents. " - tc = document.textclass - if (tc == "scrlttr2"): - i = 0 - # remove ERT insets containing "\end{letter}" - while True: - i = find_token(document.body, "\\begin_inset ERT", i) - if i == -1: - return - if document.body[i+7] == "end{letter}": - del document.body[i-1:i+14] - document.body[i-1] = '\\begin_layout EndLetter\n' \ - '\\begin_inset Note Note\n' \ - 'status collapsed\n\n' \ - '\\begin_layout Standard\n' \ - 'keep this environment empty\n' \ - '\\end_layout\n\n' \ - '\\end_inset\n\n\n' \ - '\\end_layout\n\n' - i = i + 1 - - ## # Conversion hub # @@ -1288,7 +1265,7 @@ convert = [[277, [fix_wrong_tables]], [311, [convert_ams_classes]], [312, []], [313, [convert_module_names]], - [314, [convert_serial_letter]] + [314, []] ] revert = [[313, []], -- 2.39.5