Quote:
Originally Posted by retro
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?