[ticket/11435] Do not add newlines after compiled vars

Template variables were having newlines appended after their closing
PHP tags. For whatever reason, extension templates added by the
EVENT tag were getting unwanted extra new lines added to their
variables. That results in major breakage of HTML and Javascript
for extension template events. This change prevents any forced
additions of newlines to closing php tags around template variables.

http://tracker.phpbb.com/browse/PHPBB3-11435
http://area51.phpbb.com/phpBB/viewtopic.php?f=81&t=44035

PHPBB3-11435