Merged revisions 55730 via svnmerge from

svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2

........
  r55730 | wrossiter | 2008-06-05 16:25:08 +1200 (Thu, 05 Jun 2008) | 1 line
  
  MINOR: removed debug statement
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56909 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-06-25 04:00:03 +00:00
parent ab48465858
commit 9143050226

View File

@ -106,7 +106,6 @@ class BBCodeParser extends TextParser {
function parse() {
$this->content = str_replace(array('&', '<', '>'), array('&amp;', '&lt;', '&gt;'), $this->content);
$this->content = SSHTMLBBCodeParser::staticQparse($this->content);
Debug::message($this->content);
$this->content = "<p>".$this->content."</p>";
$this->content = preg_replace("/([^>\s]\s*)\n\n/", '$1</p><p>', $this->content);
$this->content = preg_replace("/([^>\s]\s*)\n/", '$1<br />', $this->content);