Jose' Matos wrote: > On Wednesday 04 June 2003 17:25, Angus Leeming wrote: >> Adds a lyx2lyx conversion routine and; >> bumps the LyX format to 224. > > Do we need this? > Even if we do it we should do it in a different way, or else lyx2lyx > will > not be able to read 223 format documents. > >> Any problems with me applying this? > > Yes. :-)
I don't claim to understand the magic that lyx2lyx uses here. Which bit shouldn't be bumped? lyx2lyx or buffer.C? Why doesn't it read the format of the incoming file (223) and compare it to the final, desired format (224)? If different, run it through the closest lyxconvert_ABC.py (where ABC is the first one below 223) to the end of the list of lyxconvert_XYZ.py it has in its list? Anyway, tell me what to do and I'll do it. Index: lib/lyx2lyx/lyx2lyx =================================================================== fileformat = re.compile(r"\\lyxformat\s*(\S*)") -lst_ft = ["210", "215", "216", "217", "218", "220", "221", "223"] +lst_ft = ["210", "215", "216", "217", "218", "220", "221", "224"] Index: src/buffer.C =================================================================== namespace { -const int LYX_FORMAT = 223; +const int LYX_FORMAT = 224; -- Angus