mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Simplify authors template
This commit is contained in:
parent
8e3398d0c1
commit
cc38a40fae
@ -47,7 +47,7 @@ cprefs.defaults['footer_template'] = r'''program:
|
||||
# Show at most two authors, on separate lines.
|
||||
authors = field('authors');
|
||||
num = count(authors, ' & ');
|
||||
authors = cmp(num, 2, authors, authors, sublist(authors, 0, 2, ' & '));
|
||||
authors = sublist(authors, 0, 2, ' & ');
|
||||
authors = list_re(authors, ' & ', '(.+)', '<b>\1');
|
||||
authors = re(authors, ' & ', '<br>');
|
||||
re(authors, '&&', '&')
|
||||
|
Loading…
x
Reference in New Issue
Block a user