TokenStream, by default, optimizes some whitespace away (e.g., around Twig comments), no matter whether ignoreWhitespace is set or not. This PR skips this whitespace trimming when ignoreWhitespace is set to false.
A test and a tiny bit of boyscouting is added, too.
What changed in this PR:
TokenStream, by default, optimizes some whitespace away (e.g., around Twig comments), no matter whether
ignoreWhitespace
is set or not. This PR skips this whitespace trimming whenignoreWhitespace
is set tofalse
.A test and a tiny bit of boyscouting is added, too.