From: Dekel Tsur Date: Tue, 11 Mar 2003 14:47:57 +0000 (+0000) Subject: Convert Info insets to Note insets. X-Git-Tag: 1.6.10~17274 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=de176d0550cede730aee253155e7b9127733f2f0;p=features.git Convert Info insets to Note insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6446 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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