View Single Post
Old 07-18-2018, 02:42 AM   #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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Phssthpok View Post
Can anyone explain what is going on here, and how I can get both a space and the first character of the title to appear?
Leading and trailing spaces in the result of a template expression are stripped (removed) before that result is further processed. That is one reason the prefix and suffix options exist -- they are applied if the result is non-empty after being stripped, and without further stripping.

Use
Code:
{rating:contains(5,✓,)|| }{title}
@davidfor: he is using Single Function Mode, which doesn't use quoting. This can lead to ambiguities, which is why I prefer Template Program Mode or General Program Mode, depending on the task.
chaley is offline   Reply With Quote