mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
do not wrap multi line code blocks into pre tag
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user