Re: lyx2lyx error: IndexError: list index out of range

2022-12-21 Thread Richard Kimberly Heck
On 12/21/22 02:55, Jürgen Spitzmüller wrote: Am Mittwoch, dem 21.12.2022 um 08:09 +0100 schrieb Jürgen Spitzmüller: The problem seems to be in the revert_starred_refs method, which overwrites parts of the surrounding document and thus deletes a plain layout begin. If you comment out that method,

Re: lyx2lyx error: IndexError: list index out of range

2022-12-21 Thread Scott Kostyshak
On Wed, Dec 21, 2022 at 08:55:18AM +0100, Jürgen Spitzmüller wrote: > Am Mittwoch, dem 21.12.2022 um 08:09 +0100 schrieb Jürgen Spitzmüller: > > The problem seems to be in the revert_starred_refs method, which > > overwrites parts of the surrounding document and thus deletes a plain > > layout begi

Re: lyx2lyx error: IndexError: list index out of range

2022-12-20 Thread Jürgen Spitzmüller
Am Mittwoch, dem 21.12.2022 um 08:09 +0100 schrieb Jürgen Spitzmüller: > The problem seems to be in the revert_starred_refs method, which > overwrites parts of the surrounding document and thus deletes a plain > layout begin. If you comment out that method, the error disappears. I think I fixed it

Re: lyx2lyx error: IndexError: list index out of range

2022-12-20 Thread Jürgen Spitzmüller
Am Montag, dem 19.12.2022 um 16:57 -0500 schrieb Scott Kostyshak: > The problem is that the code is supposed to append, then pop. then > append, then pop. There is a mismatch somewhere and the code pops > without a preceding append, so the list of languages is empty. The problem seems to be in the

Re: lyx2lyx error: IndexError: list index out of range

2022-12-19 Thread Scott Kostyshak
On Sun, Dec 11, 2022 at 09:42:33PM +, José Matos wrote: > On Sun, 2022-12-11 at 15:29 -0500, Scott Kostyshak wrote: > > convert_hebrew_parentheses > >     elif current_languages[-1] == 'hebrew' and not > > line.startswith('\\'): > > IndexError: list index out of range > > This happens only whe

Re: lyx2lyx error: IndexError: list index out of range

2022-12-11 Thread José Matos
On Sun, 2022-12-11 at 15:29 -0500, Scott Kostyshak wrote: > convert_hebrew_parentheses >     elif current_languages[-1] == 'hebrew' and not > line.startswith('\\'): > IndexError: list index out of range This happens only when current_languages is an empty list: In [1]: [][-1]