Added smarty 3 compatibility to SmartyTask.
Removed trailing whitespace from SmartyTask file.