From 2dceeb03b15c014f6597cc115d7540a7a74fb413 Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:51:15 +0100 Subject: [PATCH] move prefix syntax at the good function --- src/calibre/utils/formatter_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 3cc6feae4b..aee5957e28 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -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): @@ -3161,7 +3162,6 @@ the lookup name ``lookup_name``. The field must be multi-valued such as ``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):