phptal / PHPTAL

PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
http://phptal.org
GNU Lesser General Public License v2.1
175 stars 43 forks source link

Fix indent() and unindent() #22

Closed tanakahisateru closed 11 years ago

tanakahisateru commented 11 years ago

indent() and unindent() were ignored since 2005. They are referencing non existing field name.

This issue is from:

https://github.com/pornel/PHPTAL/commit/6e48d2d489b41c8034331887afb759dcf758bbe4#L51L112

At that time PHP was enough fuzzy but today's PHP is becoming more strict. Also I guess that indented PHP code generation will be helpful.

kornelski commented 11 years ago

Thanks