diff --git a/lib/ChangeLog b/lib/ChangeLog index b624672b31..8b8c76b11e 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-03-11 Dekel Tsur + + * lyx2lyx/lyxconvert_218.py (change_infoinset): Convert Info insets + to Note insets. + 2003-03-11 Matej Cepl * layouts/scrlttr2.layout: add Comment layout diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index d193a09f44..8d40596ad8 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -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