mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 04:27:00 +00:00
Fixed spaceless filter
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user