Enrico Forestieri wrote:

> On Tue, May 27, 2014 at 10:35:15PM +0200, Georg Baum wrote:
>> 
>> With this document I don't see an \end_layout problem, but a broken
>> \end_document if you run it htough lyx2lyx: It becomes \end_documen, and
>> the last line end is removed as well. This happens even for the no-op
>> conversion to format 474.
> 
> I actually don't see this. Looking at the converted file, I rather see
> that an EndFrame layout gets wrongly nested as follows:

It seems that the \end_document problem shadowed the real one. With your fix 
I can now convert the document correctly as well.

>> Something is really fishy here, but I don't understand what is wrong. Why
>> is the document corrupted even if you tell lyx2lyx to convert it to the
>> version it already has? This should not have anything to do with beamer,
>> since the beamer routines should not be called in this case.
> 
> As already said, I cannot reproduce this.

I found the problem and fixed it at c75c6e44. For some reason the file which 
I saved from the attachment did not have a trailing newline (maybe an off-
by-one error somewhere when the file length is determined;-), but lyx2lyx 
assumed that all lines end with a newline. This assumption is not needed, 
and I removed it.


Georg

Reply via email to