Thread:EternalLocket/@comment-26056057-20150606052509/@comment-5774380-20150606133100

It seems you managed to solve it. And yes, templates take spaces into consideration. Everything is taken into consideration except when is between tags.

The problem is that in this case the space was before those tags, and also there was a  tag that I had put there to insert the original space, so the result was that there were two line breaks.

So when editing templates it's just a matter of paying attention to see if there are already  tags and if the code you don't want to appear is between  tags and not outside.