Fixed spaceless filter

This commit is contained in:
Fabien Lucas
2019-03-14 11:35:56 +01:00
parent 874adbd922
commit 3412d1a56a
+1 -1
View File
@@ -997,7 +997,7 @@ function twig_trim_filter($string, $characterMask = null, $side = 'both')
*/
function twig_spaceless($content)
{
return preg_replace('/>\s+</', '><', $content);
return trim(preg_replace('/>\s+</', '><', $content));
}
/**