View Single Post
Old 05-21-2022, 07:33 AM   #8
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by w00dent0p View Post
Thanks again.

That seems to result in xx.x, except for x.x when the index is less than 10.

Any way to always get xx.x ? i.e. to pad with the leading zero when needed.
Like this:
Code:
{author_sort}/{series}/{series_index:format_number(04.1f)} {title} - {authors}
Quote:
Originally Posted by w00dent0p View Post
I've removed {series} and {series_index} from my template.

Since this stuff is subject to change, I decided it's a bit too much of a faff to deal with the resulting duplicate files.
I don't see why it would change again, and in any event the template isolates you from such changes.
chaley is offline   Reply With Quote