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
This commit is contained in:
Uwe Stöhr 2008-02-06 20:23:44 +00:00
parent 427f0b739c
commit a58f6d8025

View File

@ -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, []],