diff options
author | uckelman <uckelman@nomic.net> | 2010-04-25 17:41:38 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-25 17:41:38 +0000 |
commit | 8f8022c7959f00df55a49e7e24878f0c556ede1b (patch) | |
tree | 92deb1d07bed9f3a3fdf746a4571b41343d1de16 | |
parent | a41c349410198fd324cc893169ab17f2f69561e2 (diff) |
Added newlines around quote boundaries.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6744 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/BBCodeParser.php | 4 |
1 files 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"; |