mirror of
https://github.com/beetbox/beets.git
synced 2026-03-19 03:43:36 +01:00
Fix documentation issues for %first
Fix a formatting problem related to sphinx not allowing spaces at the beginning or end of an inline literal, and removed an extra sentence at th end of the %first template function documentation.
This commit is contained in:
parent
0eb0353453
commit
f0a14bfdd5
1 changed files with 2 additions and 2 deletions
|
|
@ -76,12 +76,12 @@ These functions are built in to beets:
|
|||
* ``%time{date_time,format}``: Return the date and time in any format accepted
|
||||
by `strftime`_. For example, to get the year some music was added to your
|
||||
library, use ``%time{$added,%Y}``.
|
||||
* ``%first{text}``: Returns the first item, separated by ``; ``.
|
||||
* ``%first{text}``: Returns the first item, separated by ``;`` (a semicolon
|
||||
followed by a space).
|
||||
You can use ``%first{text,count,skip}``, where ``count`` is the number of
|
||||
items (default 1) and ``skip`` is number to skip (default 0). You can also use
|
||||
``%first{text,count,skip,sep,join}`` where ``sep`` is the separator, like
|
||||
``;`` or ``/`` and join is the text to concatenate the items.
|
||||
For example,
|
||||
* ``%ifdef{field}``, ``%ifdef{field,truetext}`` or
|
||||
``%ifdef{field,truetext,falsetext}``: If ``field`` exists, then return
|
||||
``truetext`` or ``field`` (default). Otherwise, returns ``falsetext``.
|
||||
|
|
|
|||
Loading…
Reference in a new issue