mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Fix for note insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6468 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42464c437a
commit
a806376034
@ -1,3 +1,10 @@
|
|||||||
|
2003-03-12 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
|
* lyx2lyx/lyx2lyx (main): Print error messages to stderr.
|
||||||
|
|
||||||
|
* lyx2lyx/lyxconvert_218.py (change_infoinset): Convert correctly
|
||||||
|
notes with several lines and backslashes.
|
||||||
|
|
||||||
2003-03-12 John Levon <levon@movementarian.org>
|
2003-03-12 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* lyx2lyx/lyxconvert_221.py: add \\end_header
|
* lyx2lyx/lyxconvert_221.py: add \\end_header
|
||||||
|
@ -483,8 +483,20 @@ def change_infoinset(lines):
|
|||||||
i = find_token(lines, "\\begin_inset Info", i)
|
i = find_token(lines, "\\begin_inset Info", i)
|
||||||
if i == -1:
|
if i == -1:
|
||||||
break
|
break
|
||||||
lines[i:i+1] = ["\\begin_inset Note", "collapsed true", "",
|
txt = string.lstrip(lines[i][18:])
|
||||||
"\layout Standard", ""]
|
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):
|
||||||
|
new = new + ["\layout Standard", ""]
|
||||||
|
tmp = string.split(lines[k], '\\')
|
||||||
|
new = new + [tmp[0]]
|
||||||
|
for x in tmp[1:]:
|
||||||
|
new = new + ["\\backslash ", x]
|
||||||
|
lines[i:j] = new
|
||||||
i = i+5
|
i = i+5
|
||||||
|
|
||||||
def change_preamble(lines):
|
def change_preamble(lines):
|
||||||
|
Loading…
Reference in New Issue
Block a user