aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-06 10:27:01 +0000
committerMario <mario@mariovavti.com>2022-09-06 10:27:01 +0000
commit1a75066616c3723bd546c474c4e336805c8125da (patch)
treec6a437edf5cbe0fd8ef587272f0883381a763229 /include/bbcode.php
parent3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33 (diff)
downloadvolse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.tar.gz
volse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.tar.bz2
volse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.zip
revert: do not wrap multi line code blocks into pre tag
Diffstat (limited to 'include/bbcode.php')
-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>';
}