From: Dekel Tsur Date: Thu, 13 Mar 2003 12:04:31 +0000 (+0000) Subject: Fix conversion of notes. X-Git-Tag: 1.6.10~17244 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a2ec53aed7eaf3f6cdb9af2c99945929ab210f38;p=lyx.git Fix conversion of notes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6485 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index 882488d4bf..3f0c45e8bf 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -485,14 +485,17 @@ def change_infoinset(lines): break txt = string.lstrip(lines[i][18:]) new = ["\\begin_inset Note", "collapsed true", ""] - if len(txt) > 0: - new = new + ["\layout Standard", "", txt] j = find_token(lines, "\\end_inset", i) if j == -1: break - for k in range(i+1, j): + + note_lines = lines[i+1:j] + if len(txt) > 0: + note_lines = [txt]+note_lines + + for line in note_lines: new = new + ["\layout Standard", ""] - tmp = string.split(lines[k], '\\') + tmp = string.split(line, '\\') new = new + [tmp[0]] for x in tmp[1:]: new = new + ["\\backslash ", x]