aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 7c2ba30f8..794cb25d0 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -947,7 +947,7 @@ function bb_code_unprotect_sub($match) {
function bb_code($match) {
if(strpos($match[0], PHP_EOL))
- return '<code>' . bb_code_protect(trim($match[1])) . '</code>';
+ return '<pre><code>' . bb_code_protect(trim($match[1])) . '</code></pre>';
else
return '<code class="inline-code">' . bb_code_protect(trim($match[1])) . '</code>';
}