mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
843fa219b6
The problem here is that for i in range(len(document.body)): sets the range BEFORE we do any of our manipulations. But those manipulations can make document.body longer. As a result, we can fail to test some lines. Instead, use: while i < len(document.body): and increment i in the while loop. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25050 a592a061-630c-0410-9148-cb99ea01b6c8