View Single Post
Old 10-20-2016, 05:52 PM   #2
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,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Your problem is happening because you didn't respect what it says in the template language manual, "Do not use subtemplates (`{ ... }`) as function arguments." In addition, in single-function-mode spaces are significant. You should include them only where you want them in the output.

The most general way to fix this is to use general program mode. Something like
Code:
program:
	contains(
		field('#genre'),
		'Sachbuch', 
		field('title'), 
		strcat(field('authors'), '_', field('title'))
	)
chaley is offline   Reply With Quote