summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/BBCodeParser.php4
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";