From fb46e00fd54f1dfd33f4fd627004f2a54780d472 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 5 Nov 2010 14:48:45 +0000 Subject: [PATCH] Reminders. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36107 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx2lyx_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx2lyx_tools.py b/lib/lyx2lyx/lyx2lyx_tools.py index 100f280550..8f25f95557 100644 --- a/lib/lyx2lyx/lyx2lyx_tools.py +++ b/lib/lyx2lyx/lyx2lyx_tools.py @@ -28,6 +28,7 @@ def add_to_preamble(document, text): Only the first line is checked!""" if not type(text) is list: + document.warning("You should pass a list to add_to_preamble!") # split on \n just in case # it'll give us the one element list we want # if there's no \n, too @@ -45,6 +46,7 @@ def insert_to_preamble(index, document, text): """ Insert text to the preamble at a given line""" if not type(text) is list: + document.warning("You should pass a list to insert_to_preamble!") # split on \n just in case # it'll give us the one element list we want # if there's no \n, too @@ -366,4 +368,3 @@ def str2bool(s): "'true' goes to True, case-insensitively, and we strip whitespace." s = s.strip().lower() return s == "true" - \ No newline at end of file -- 2.39.5