From 8a57472224e35cfd610a5e7f653dde2eecf08892 Mon Sep 17 00:00:00 2001 From: Emil Hammarberg Date: Tue, 3 Mar 2026 12:43:27 +0100 Subject: [PATCH] Reword --- docs/reference/pathformat.rst | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/reference/pathformat.rst b/docs/reference/pathformat.rst index 017a210b6..713a65232 100644 --- a/docs/reference/pathformat.rst +++ b/docs/reference/pathformat.rst @@ -62,11 +62,9 @@ These functions are built in to beets: - ``%left{text,n}``: Return the first ``n`` characters of ``text``. - ``%right{text,n}``: Return the last ``n`` characters of ``text``. - ``%if{condition,text}`` or ``%if{condition,truetext,falsetext}``: If - ``condition`` is nonempty (or nonzero, if it's a number), then returns the - second argument. Otherwise, returns the third argument if specified (or - nothing if ``falsetext`` is left off). Note that beets doesn't distinguish - between different data types, so ``%if{album,album/}`` evaluates as false for - albums named exactly "0". + ``condition`` is none of ```` (an empty string), ``0``, or ``false`` (case + insensitive), then returns the second argument. Otherwise, returns the third + argument if specified (or nothing if ``falsetext`` is left off). - ``%asciify{text}``: Convert non-ASCII characters to their ASCII equivalents. For example, "café" becomes "cafe". Uses the mapping provided by the `unidecode module`_. See the :ref:`asciify-paths` configuration option.