From: Richard Heck Date: Fri, 5 Nov 2010 20:11:51 +0000 (+0000) Subject: Find the end of this layout, not the first end_layout tag we see! X-Git-Tag: 2.0.0~1979 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=296ae1b3f09b6139d59d1c33ff2a3b3ad807df52;p=lyx.git 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 --- diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 354e2f03f6..bacaadd51a 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -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