Issue #3297445 by marthinal, jwilson3: spaceless is deprecated since Twig 2.7, use apply spaceless instead