View Single Post
Old 07-18-2018, 06:15 AM   #5
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 584
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by chaley View Post
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}
Aha! Thank you very much, problem solved! (I didn't see anything in TFM about template results being trimmed...?)

I'm still puzzled about losing the first letter of the title with a backslash-escaped space though...

Last edited by Phssthpok; 07-18-2018 at 06:23 AM.
Phssthpok is offline   Reply With Quote