From 9ec9e461974f1ac811c6e9b2bf96fc5bd503e280 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 28 Mar 2016 20:42:48 +0530 Subject: [PATCH] Oops, my brain must be on holiday --- src/calibre/utils/formatter_functions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 42d5b6c816..6bb47e9f5e 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -1072,9 +1072,7 @@ class BuiltinAnd(BuiltinFormatterFunction): __doc__ = doc = _('and(value, value, ...) -- ' 'returns the string "1" if all values are not empty, otherwise ' 'returns the empty string. This function works well with test or ' - 'first_non_empty. You can have as many values as you want. ' - 'When more than one value is present it will return "1" only if ' - 'all the values are not empty.') + 'first_non_empty. You can have as many values as you want. ') def evaluate(self, formatter, kwargs, mi, locals, *args): i = 0 @@ -1108,7 +1106,7 @@ class BuiltinNot(BuiltinFormatterFunction): __doc__ = doc = _('not(value) -- ' 'returns the string "1" if the value is empty, otherwise ' 'returns the empty string. This function works well with test or ' - 'first_non_empty. You can have as many values as you want.') + 'first_non_empty.') def evaluate(self, formatter, kwargs, mi, locals, val): return '' if val else '1'