not needed spaces timed in smarty tag (cherry picked from commit 09e15c2)