mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix conversion of notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6485 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
872de8b1de
commit
a2ec53aed7
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user