]> git.lyx.org Git - features.git/commit
Fix convert_spaceinset again.
authorRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 14:22:11 +0000 (14:22 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 14:22:11 +0000 (14:22 +0000)
commit843fa219b6b7900a1fea981dd88c9d3ccfb8d1ad
tree80d9117adeb833427d5251f31f70cac1d66ab395
parent3e95457d4c185213c415b9a7b0d85c48c077aa77
Fix convert_spaceinset again.

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
lib/lyx2lyx/lyx_1_6.py