mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 09:15:50 +00:00
Convert Info insets to Note insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@6447 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7212e47897
commit
bbd3a7149c
@ -1,3 +1,8 @@
|
||||
2003-03-11 Dekel Tsur <dekelts@tau.ac.il>
|
||||
|
||||
* lyx2lyx/lyxconvert_218.py (change_infoinset): Convert Info insets
|
||||
to Note insets.
|
||||
|
||||
2003-03-11 Matej Cepl <matej@ceplovi.cz>
|
||||
|
||||
* layouts/scrlttr2.layout: add Comment layout
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user