From 4091078fb44a0004c6c2eb2c8f38cd446b423ee9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 4 Nov 2010 14:00:56 +0000 Subject: [PATCH] Add warning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36055 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 225bd09a3c..57662c14dd 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1294,7 +1294,7 @@ def revert_includeonly(document): return j = find_end_of(document.header, i, "\\begin_includeonly", "\\end_includeonly") if j == -1: - # this should not happen + document.warning("Unable to find end of includeonly section!!") break document.header[i : j + 1] = [] -- 2.39.2