mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
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:
parent
205feb0704
commit
3cc5a2e800
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user