]> git.lyx.org Git - lyx.git/commitdiff
Find the end of this layout, not the first end_layout tag we see!
authorRichard Heck <rgheck@comcast.net>
Fri, 5 Nov 2010 20:11:51 +0000 (20:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 5 Nov 2010 20:11:51 +0000 (20:11 +0000)
Math manual now exports right.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36138 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index 354e2f03f62f68f38f0a0e04aa07f49288823e44..bacaadd51af4de8ce7a1fd3ed9a08ef5e2731f5c 100644 (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