Use the new put_cmd_in_ert routine in the xymatrix reversion routine.

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
This commit is contained in:
Richard Heck 2010-03-29 17:05:21 +00:00
parent 205feb0704
commit 3cc5a2e800

View File

@ -1323,11 +1323,11 @@ def revert_equalspacing_xymatrix(document):
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")