From 8f8022c7959f00df55a49e7e24878f0c556ede1b Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 25 Apr 2010 17:41:38 +0000 Subject: Added newlines around quote boundaries. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6744 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index ddec8f7..7ffd5b0 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -83,7 +83,7 @@ class BBCodeParser { # nothing to do on opening break; case 'quote': - $quote_stack[] = $out; + $quote_stack[] = $out . "\n"; $out = ''; break; case 'code': @@ -157,7 +157,7 @@ class BBCodeParser { $out = wordwrap($out, 72 - 2*$level); $out = str_replace("\n", "\n> ", $out); $out = '> ' . $out; - $out = array_pop($quote_stack) . $out; + $out = array_pop($quote_stack) . $out . "\n"; break; case 'code': $out .= "\n"; -- cgit v1.2.3