Massive overhaul of Mustache.php's whitespace handling.
Move regex preparation into methods, use named subpatterns so the regex makes more sense. Fix the logic around eating newlines adjacent to tags. Update tests to reflect the changes.
This commit is contained in:
@@ -83,7 +83,6 @@ Known Issues
|
||||
|
||||
* Sections don't respect delimiter changes -- `delimiters` example currently fails with an
|
||||
"unclosed section" exception.
|
||||
* Mustache isn't always very good at whitespace.
|
||||
|
||||
|
||||
See Also
|
||||
|
||||
Reference in New Issue
Block a user