I'm not an English user so something was lost in translation.
See attached print screens!
I want to sort series the proper way when saving to disk.
In Save to disk I used
Code:
{series_index:0>2s| - |}
taken from here...
https://manual.calibre-ebook.com/template_lang.html
It works fine and the output is a proper two digits with trailing zeros
BUT... when using that code in my template it doesn't allow to save the code as there is a parsing error when hitting the button APPLY (the template editor do not shows any error)
This code can be saved in Calibre "Save to disk" template
Code:
{author_sort:sublist(0,1,&)}/{author_sort:sublist(0,1,&)}{title:.60| - |}/{author_sort:sublist(0,1,&)}{series:.25| - |}{series_index:| - |}{title:.55| - |}
BUT this code (with trailing zeros for series) cannot be saved in Calibre "Save to disk" template
Code:
{author_sort:sublist(0,1,&)}/{author_sort:sublist(0,1,&)}{title:.60| - |}/{author_sort:sublist(0,1,&)}{series:.25| - |}{series_index:0>2s| - |}{title:.55| - |}
In the editor popup it works fine but in the main window, the apply button fires an error:
The error says something like "The template contains no {fields}"
So I know that something is wrong... only I don't know what!
Note: Using Calibre 3.48.0 windows x86