From e90f9ea0f70264b294aed3cbf0faa29f06c5840b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Matox?= Date: Thu, 9 Oct 2008 12:51:37 +0000 Subject: [PATCH] preview comes always after a latecommand git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26826 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 0577804961..c2dafd1209 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1429,11 +1429,6 @@ def revert_include(document): if i == -1: return nextline = i + 1 - if r0.match(document.body[nextline]): - previewline = document.body[nextline] - nextline += 1 - else: - previewline = "" m = r1.match(document.body[nextline]) if m == None: document.warning("Malformed LyX document: No LatexCommand line for `" + @@ -1442,6 +1437,11 @@ def revert_include(document): continue cmd = m.group(1) nextline += 1 + if r0.match(document.body[nextline]): + previewline = document.body[nextline] + nextline += 1 + else: + previewline = "" m = r2.match(document.body[nextline]) if m == None: document.warning("Malformed LyX document: No filename line for `" + \