From de176d0550cede730aee253155e7b9127733f2f0 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Tue, 11 Mar 2003 14:47:57 +0000 Subject: [PATCH] Convert Info insets to Note insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6446 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/lyx2lyx/lyxconvert_218.py | 11 +++++++++++ 2 files changed, 16 insertions(+) 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 -- 2.39.2