mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
manual formatting
This commit is contained in:
parent
dfc888ef47
commit
1e123e35cf
@ -401,7 +401,7 @@ An ``if`` produces a value like any other language expression. This means that a
|
|||||||
* ``program: a = if field('series') then 'foo' else 'bar' fi; a``
|
* ``program: a = if field('series') then 'foo' else 'bar' fi; a``
|
||||||
* ``program: a = field(if field('series') then 'series' else 'title' fi); a``
|
* ``program: a = field(if field('series') then 'series' else 'title' fi); a``
|
||||||
|
|
||||||
The template language supports **``for`` expressions** with the following syntax:
|
The template language supports **``for`` expressions** with the following syntax::
|
||||||
|
|
||||||
for <<id>> in <<expression>>:
|
for <<id>> in <<expression>>:
|
||||||
<<expression_list>>
|
<<expression_list>>
|
||||||
@ -413,7 +413,7 @@ individual values. Each resulting value in the list is assigned to the variable
|
|||||||
is evaluated.
|
is evaluated.
|
||||||
|
|
||||||
Example: This template removes the first hierarchical name for each value in Genre (``#genre``), constructing a list with
|
Example: This template removes the first hierarchical name for each value in Genre (``#genre``), constructing a list with
|
||||||
the new names.
|
the new names::
|
||||||
|
|
||||||
program:
|
program:
|
||||||
new_tags = '';
|
new_tags = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user