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:
Justin Hileman
2010-11-24 07:45:24 -05:00
parent d026315a2c
commit 3e6b8102b7
13 changed files with 87 additions and 98 deletions
-1
View File
@@ -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