View Single Post
Old 12-19-2022, 09:54 PM   #5
Req13
Enthusiast
Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!Req13 rocks like Gibraltar!
 
Posts: 28
Karma: 100000
Join Date: Mar 2010
Device: Kindle PW4, Sony PRS-T1, PRS-600 & Nook STR
Quote:
Originally Posted by chaley View Post
Code:
program:
# The authors
    a = $authors;
# Do any transforms you want to authors
# For example, to get the first author
#    a = list_item(a, 0, '&');

# The title
    t = $title;
    t = re(t, '\?', '');
    t = re(t, ':', ';');
# Add any more changes that you want.

# Construct the final output
    a & ' - ' & t
I do want all the authors with no transforms. I tried this code in the edit template box, but it wouldn't work. It comes up with this error in the template value box:

EXCEPTION: Formatter: Failed to scan program. Invalid input '& ' - ' & t' near the end of the program

I'm not sure if I needed to change something in the code or not.
Req13 is offline   Reply With Quote