View Single Post
Old 12-11-2025, 03:19 AM   #864
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 318
Karma: 2535278
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by retro View Post
I am trying to use a Single Function Mode template and would like to have a separator character between each field, but not if the field is empty.
I realize I can put a character between the fields, but the character is left hanging out there alone if the field is empty. Is this possible with a very simple
template?

Code:
{#star:| |}{#pages:|Pages: |}{tags:| |}
Is the suffix feature sufficient for what you're trying to accomplish? For example, modifying your code to use a comma followed by a space after #star (if non-empty) and #pages (if non-empty) but not tags:

Code:
{#star:| |, }{#pages:|Pages: |, }{tags:| |}
If that doesn't do what you're after, could you provide an example of some text formatted the way you are trying to replicate with your template?
isarl is offline   Reply With Quote