ahri / ahriphplibs

My PHP Libraries
http://ahri.net
GNU Affero General Public License v3.0
3 stars 0 forks source link

Extraneous whitespace may exist at end of lines #15

Closed ahri closed 14 years ago

ahri commented 14 years ago

Kill it!

$node = new Node('span', 'foo ');
Test::t('Stripping of useless whitespace after NodeText', array($node, '__toString'), array(), 'return $result == "<span>\n    foo\n</span>\n";');

echo str_replace(' ', '_', $node);

Expecting: ____foo

Getting: ___foo

ahri commented 14 years ago

added stripping trailing space from child buffer, closed by 4910ebcfe9fe97ad19132dced3888de84350ce11