View Single Post
Old 09-09-2023, 12:15 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chris33 View Post
Also if I set the template to:
{series}-{series_index}-{title}-{author} for instance
and the series, series_index and author are empty for some entries, then my file name will look like:

- - title -

Is there a way to avoid hyphens without values before/after (conditional template)?
See the calibre template language documentation, in particular the Advanced Formatting section that describes how to include conditional text.
chaley is offline   Reply With Quote