View Single Post
Old 01-04-2015, 10:17 AM   #2
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: 11,783
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
By calibre I assume you mean the template language. You are correct, the template language supports strings. A string is converted to a list if the context calls for it. In your example you would use "CBR, CBZ, CBT, CBA, CB7".

If you want to use "real" lists then you can write a custom formatter function in python, which will of course have much better performance than a template language program.
chaley is offline   Reply With Quote