diff options
author | Mario <mario@mariovavti.com> | 2022-09-06 10:27:01 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-06 10:27:01 +0000 |
commit | 1a75066616c3723bd546c474c4e336805c8125da (patch) | |
tree | c6a437edf5cbe0fd8ef587272f0883381a763229 | |
parent | 3dfb0bcae979e62cbf928c7a05eb1ae568c4ae33 (diff) | |
download | volse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.tar.gz volse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.tar.bz2 volse-hubzilla-1a75066616c3723bd546c474c4e336805c8125da.zip |
revert: do not wrap multi line code blocks into pre tag
-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 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>'; } |