Fixing issue where indented keywords would fail template expansion.
Trim line before extracting template name (oversight in previous commit)
Merge pull request #170 from magnusvojbacke/templates_indented_keywords

Fix: indented keywords would fail template expansion. Thanks for the pull request.