Convert Info insets to Note insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6446 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2003-03-11 14:47:57 +00:00
parent efbac801e2
commit de176d0550
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-03-11 Dekel Tsur <dekelts@tau.ac.il>
* lyx2lyx/lyxconvert_218.py (change_infoinset): Convert Info insets
to Note insets.
2003-03-11 Matej Cepl <matej@ceplovi.cz>
* layouts/scrlttr2.layout: add Comment layout

View File

@ -477,6 +477,16 @@ def change_listof(lines):
lines[i] = "\\begin_inset FloatList "+type
i = i+1
def change_infoinset(lines):
i = 0
while 1:
i = find_token(lines, "\\begin_inset Info", i)
if i == -1:
break
lines[i:i+1] = ["\\begin_inset Note", "collapsed true", "",
"\layout Standard", ""]
i = i+5
def change_preamble(lines):
i = find_token(lines, "\\use_amsmath", 0)
if i == -1:
@ -499,6 +509,7 @@ def convert(header, body):
remove_oldertinset(body)
remove_oldert(body)
combine_ert(body)
change_infoinset(body)
if __name__ == "__main__":
pass