Vincent, can you check (again) that I didn't break this wiht an off by
one error or something?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33916
a592a061-630c-0410-9148-
cb99ea01b6c8
if found != -1:
has_equal_spacing = True
- content = document.body[i][21:]
- content += '\n'.join(document.body[i+1:j])
- subst = [old_put_cmd_in_ert(content)]
+ content = [document.body[i][21:]]
+ content += document.body[i+1:j]
+ subst = put_cmd_in_ert(content)
document.body[i:j+1] = subst
- i += 1
+ i += len(subst)
else:
for curline in range(i,j):
l = document.body[curline].find("\\xymatrix")