Re: lyx2lyx revertion bug.

2005-07-13 Thread Jose' Matos
On Tuesday 12 July 2005 22:26, Jose' Matos wrote: >   OK, you are right. Now lyx2lyx does not break in any file of my > repository (there is an exception but I am investigating its origin) > either up to 242 or from there to 221 again. FYI, the exception I was talking about was the intermediate

Re: lyx2lyx revertion bug.

2005-07-13 Thread Georg Baum
Jose' Matos wrote: > But if you intend to write something in the preamble and there isn't any > preamble then we create one and add the text there, as it would happen if > there was a preamble initially. This true indeed. I was missing the context (only read the patch). Georg

Re: lyx2lyx revertion bug.

2005-07-13 Thread Jose' Matos
On Wednesday 13 July 2005 08:10, Georg Baum wrote: > > Notice that I make add_to_preamble a little bit more robust. It is no > > error for a lyx file not to have a preamble, so if it does not have one > > we add it. > > Why? LyX 1.3 does not write a preamble if it would be empty, so I see no > reas

Re: lyx2lyx revertion bug.

2005-07-13 Thread Jose' Matos
On Tuesday 12 July 2005 22:39, Angus Leeming wrote: > Jose' Matos wrote: > > Notice again that this does not mean that the convertion is correct it > > only means that lyx2lyx thinks that it knows what it is doing. :-) > > It would be nice if you would extend your tests to at least check that > LyX

Re: lyx2lyx revertion bug.

2005-07-13 Thread Georg Baum
Jose' Matos wrote: > Hi Georg, > if you are not the person to blame please excuse and direct the flames to > the responsible. ;-) I don't see anything to be blamed for yet :-) > My first file that fails the test is the one attached. It does work for me. At least it converts without error and c

Re: lyx2lyx revertion bug.

2005-07-12 Thread Angus Leeming
Jose' Matos wrote: > Notice again that this does not mean that the convertion is correct it > only means that lyx2lyx thinks that it knows what it is doing. :-) It would be nice if you would extend your tests to at least check that LyX could export a latex file... Are there no utilites to compare

Re: lyx2lyx revertion bug.

2005-07-12 Thread Jose' Matos
On Tuesday 12 July 2005 22:12, Angus Leeming wrote: > Jose' Matos wrote: > > My proposed patch follows attached as well. > > If '\end_preamble' should always be present can I suggest changing the > warning to something reassuring? > > j = find_token(file.header, '\\end_preamble', i) > if

Re: lyx2lyx revertion bug.

2005-07-12 Thread Angus Leeming
Jose' Matos wrote: > My proposed patch follows attached as well. If '\end_preamble' should always be present can I suggest changing the warning to something reassuring? j = find_token(file.header, '\\end_preamble', i) if j == -1: -file.warning("Malformed LyX file: Missing '\\end

lyx2lyx revertion bug.

2005-07-12 Thread Jose' Matos
Hi Georg, if you are not the person to blame please excuse and direct the flames to the responsible. ;-) By any account it is Angus fault that I report this error. ;-) He suggested a convertion to the latest format and a revertion to 221 to see how lyx2lyx behaves. I