View Single Post
Old 07-07-2016, 03:55 PM   #4
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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Turns out that having two "|" characters in a TPM template triggers the prefix and suffix processing. This is arguably a bug, but it isn't one I am going to try to fix.

Use GPM instead. It makes no assumptions about the meaning of | and {}
Code:
program:
	re(field('publisher'),' (Media|Publishing - ebooks Account|Press)$','')
chaley is offline   Reply With Quote