From c74dd657d476e6872929a41441c175916b57ac03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Oct 2024 05:29:22 +0530 Subject: [PATCH] string changes --- manual/template_lang.rst | 2 +- src/calibre/utils/formatter_functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/template_lang.rst b/manual/template_lang.rst index fe0d17cf3a..c80222bd55 100644 --- a/manual/template_lang.rst +++ b/manual/template_lang.rst @@ -614,7 +614,7 @@ In `GPM` the functions described in `Single Function Mode` all require an additi has_note('authors', '') - returns a list of authors that have notes. or ``''`` if no author has a note. + returns a list of authors that have notes, or ``''`` if no author has a note. You can test if all the values in ``field_name`` have a note by comparing the list length of this function's return value against the list length of the values in ``field_name``. Example:: diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index 72c08bd899..0b61cea3d1 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -2638,7 +2638,7 @@ class BuiltinHasNote(BuiltinFormatterFunction): "is '' then return a list of values in field_name that have " "a note. If no item in the field has a note, return ''. " "Example: has_note('authors', '') returns a list of authors " - "that have notes. or '' if no author has a note. The second " + "that have notes, or '' if no author has a note. The second " "variant is useful for showing column icons icons if any value " "in the field has a note, rather than a specific value. " "You can also test if all the values have a note by comparing "