The prettier plugin cannot guess if the absence of space was needed, so it got preserved. However in some cases it's not needed. Eg. koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt + [% END %]</li + > We could move the closing li on a separate line for better indentation and readability. Also the closing title almost everywhere: -[% END %]</title> If we don't want spaces we need to CHOMP List the candidates with `git grep -P 'END %][^\s|>|;|)|"|[]' **/*.tt`