From 1a75066616c3723bd546c474c4e336805c8125da Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 6 Sep 2022 10:27:01 +0000 Subject: revert: do not wrap multi line code blocks into pre tag --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') 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 '' . bb_code_protect(trim($match[1])) . ''; + return '
' . bb_code_protect(trim($match[1])) . '
'; else return '' . bb_code_protect(trim($match[1])) . ''; } -- cgit v1.2.3