mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add &
operator and $
prefix doc
This commit is contained in:
parent
e854f0889d
commit
8664cc9718
@ -352,7 +352,8 @@ class BuiltinStrcat(BuiltinFormatterFunction):
|
|||||||
__doc__ = doc = _(
|
__doc__ = doc = _(
|
||||||
r'''
|
r'''
|
||||||
``strcat(a [, b]*)`` -- can take any number of arguments. Returns a string
|
``strcat(a [, b]*)`` -- can take any number of arguments. Returns a string
|
||||||
formed by concatenating all the arguments.
|
formed by concatenating all the arguments. In most cases you can use the ``&`` operator
|
||||||
|
instead of this function.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
def evaluate(self, formatter, kwargs, mi, locals, *args):
|
def evaluate(self, formatter, kwargs, mi, locals, *args):
|
||||||
@ -3159,8 +3160,8 @@ r'''
|
|||||||
the lookup name ``lookup_name``. The field must be multi-valued such as
|
the lookup name ``lookup_name``. The field must be multi-valued such as
|
||||||
``authors`` or ``tags``, otherwise the function raises an error. This function
|
``authors`` or ``tags``, otherwise the function raises an error. This function
|
||||||
is much faster than ``list_count()`` because it operates directly on calibre
|
is much faster than ``list_count()`` because it operates directly on calibre
|
||||||
data without converting it to a string first. Example:
|
data without converting it to a string first. Example: ``list_count_field('tags')``.
|
||||||
``list_count_field('tags')``
|
The ``$`` prefix can be used instead of the function, as in ``$tags``.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
def evaluate(self, formatter, kwargs, mi, locals, *args):
|
def evaluate(self, formatter, kwargs, mi, locals, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user