7 Mar 2021 (calibre 5.13):
- Fix regression introduced sometime in calibre V5: expression lists as parameters
In calibre versions before V5.something one could use expression lists as parameters. Example:
Code:
program:
list_union(
a = 'xxx'; list_union('a', field('tags'), ','),
field('#genre'),
','
)
This 'feature' was certainly rarely used but it was possible. Fixed in the interest of compatibility.
- Allow expression lists in parenthesized expressions.
As a consequence of the above, you can now put expression lists in parenthesized expressions. Example:
Code:
program:
b = (
a = field('#mytextmult');
list_union(a, field('tags'), ',')
);
if a then
list_union(b, field('#genre'), ',')
else
b
fi