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:
@@ -1,7 +1,7 @@
|
||||
{{#t}}
|
||||
* first
|
||||
* first
|
||||
{{/t}}
|
||||
* {{two}}
|
||||
{{#t}}
|
||||
* third
|
||||
* third
|
||||
{{/t}}
|
||||
Reference in New Issue
Block a user