+2005-08-30 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * lyx_1_4.py (add_to_preamble): fix invocation of find_token (bug 2004)
+
2005-08-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (remove_paperpackage): fix bug 2001.
2005-08-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (remove_paperpackage): fix bug 2001.
# Add text to the preamble if it is not already there.
# Only the first line is checked!
def add_to_preamble(file, text):
# Add text to the preamble if it is not already there.
# Only the first line is checked!
def add_to_preamble(file, text):
- if find_token(file.preamble, text[0]) != -1:
+ if find_token(file.preamble, text[0], 0) != -1:
return
file.preamble.extend(text)
return
file.preamble.extend(text)