Skip to content

Commit

Permalink
Merge pull request #211 from fenom-template/develop
Browse files Browse the repository at this point in the history
Fix #162
  • Loading branch information
bzick committed Feb 23, 2016
2 parents 9f1bad3 + 46708c6 commit 7668426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Fenom/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private function _appendText($text)
if($this->_options & Fenom::AUTO_STRIP) {

$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
// $text = preg_replace('/\s*([\pP\pS]+)\s*/uS', '$1', $text);
$text = str_replace("> <", "><", $text);
}
$this->_body .= $text;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/FenomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function testStrip() {
<a href="/item/{\$one}">number {\$num.1}</a>
</div>
TPL;
$this->assertRender($tpl, '<div class="item item-one"> <a href="/item/1">number one</a> </div>');
$this->assertRender($tpl, '<div class="item item-one"><a href="/item/1">number one</a></div>');
}
}

Expand Down

0 comments on commit 7668426

Please sign in to comment.