aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-09-06 09:21:39 +0000
committerMario <mario@mariovavti.com>2022-09-06 09:21:39 +0000
commit3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33 (patch)
tree444e55bc840f27d8a7fb17ae0f1fd680cb11db1d
parent9ac0b77e9240a893087fe8d2d4fa6ac5301dbd66 (diff)
downloadvolse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.tar.gz
volse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.tar.bz2
volse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.zip
do not wrap multi line code blocks into pre tag
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 794cb25d0..7c2ba30f8 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 '<pre><code>' . bb_code_protect(trim($match[1])) . '</code></pre>';
+ return '<code>' . bb_code_protect(trim($match[1])) . '</code>';
else
return '<code class="inline-code">' . bb_code_protect(trim($match[1])) . '</code>';
}