Bo Peng schrieb:
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():
This fixes the list range bug, I therefore applied it.
But the encoding problem remains:
File "D:\LyXSVN\lyx-devel\build-msvc\Resources\lyx2lyx\LyX.py", line 279, in
write
self.output.write(line.encode(self.encoding)+"\n")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal
not in range(128)
I thought that self.encoding uses the encoding of the file (that is utf-8
encoded).
I removed the "Í" character for now from doc_toc.py so that you can compile in
the meantime.
thanks and regards
Uwe