mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 03:23:33 +02:00
Simplify authors template
This commit is contained in:
parent
8e3398d0c1
commit
cc38a40fae
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@
|
|||
# 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…
Reference in a new issue