diff options
author | Mario <mario@mariovavti.com> | 2022-09-06 09:21:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-06 09:21:39 +0000 |
commit | 3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33 (patch) | |
tree | 444e55bc840f27d8a7fb17ae0f1fd680cb11db1d /include/bbcode.php | |
parent | 9ac0b77e9240a893087fe8d2d4fa6ac5301dbd66 (diff) | |
download | volse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.tar.gz volse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.tar.bz2 volse-hubzilla-3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33.zip |
do not wrap multi line code blocks into pre tag
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 2 |
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>'; } |