Skip to content

Commit

Permalink
move prefix syntax at the good function
Browse files Browse the repository at this point in the history
  • Loading branch information
un-pogaz committed Nov 17, 2024
1 parent e8ddac6 commit 2dceeb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/utils/formatter_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ class BuiltinField(BuiltinFormatterFunction):
__doc__ = doc = _(
r'''
``field(lookup_name)`` -- returns the value of the metadata field with lookup name ``lookup_name``.
The ``$`` prefix can be used instead of the function, as in ``$tags``.
''')

def evaluate(self, formatter, kwargs, mi, locals, name):
Expand Down Expand Up @@ -3161,7 +3162,6 @@ class BuiltinFieldListCount(BuiltinFormatterFunction):
``authors`` or ``tags``, otherwise the function raises an error. This function
is much faster than ``list_count()`` because it operates directly on calibre
data without converting it to a string first. Example: ``list_count_field('tags')``.
The ``$`` prefix can be used instead of the function, as in ``$tags``.
''')

def evaluate(self, formatter, kwargs, mi, locals, *args):
Expand Down

0 comments on commit 2dceeb0

Please sign in to comment.