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]