Author: rgheck
Date: Fri Nov 5 21:11:51 2010
New Revision: 36138
URL: http://www.lyx.org/trac/changeset/36138
Log:
Find the end of this layout, not the first end_layout tag we see!
Math manual now exports right.
Modified:
lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
Modified: lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
==============================================================================
--- lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Fri Nov 5 21:11:19 2010
(r36137)
+++ lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Fri Nov 5 21:11:51 2010
(r36138)
@@ -167,7 +167,7 @@
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