Find the end of this layout, not the first end_layout tag we see!

Math manual now exports right.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36138 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-05 20:11:51 +00:00
parent bae5fe21bc
commit 296ae1b3f0

View File

@ -167,7 +167,7 @@ def revert_phantom_types(document, ptype, cmd):
document.warning("Can't find layout for inset at line " + str(i))
i = end
continue
bend = find_token(document.body, "\\end_layout", blay, end)
bend = find_end_of_layout(document.body, blay)
if bend == -1:
document.warning("Malformed LyX document: Could not find end of Phantom inset's layout.")
i = end