> This is strange because doc_toc.py is utf-8 encoded and the "Í" is included 
> in latin1.
> But anyway, when I delete this character, I get:
>
> File "D:\LyXSVN\lyx-devel\build-msvc\Resources\lyx2lyx\LyX.py", line 544, in 
> get_toc
>      while par[-1].strip() == '' and par:
> IndexError: list index out of range
>

This line is logically wrong. It should be

while par and par[-1].strip():

because whether or not par is empty should be tested before if the
last line is empty.

Bo

Reply via email to