Reminders.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36107 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-11-05 14:48:45 +00:00
parent 183a53897a
commit fb46e00fd5

View File

@ -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"