Fix removal of whitespace at start of message display, which broke ASCII art, etc.

This commit is contained in:
Retro_Guy 2023-12-11 04:46:42 -07:00
parent a399c66b07
commit c028cc653f
1 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ function nl2p($string, $line_breaks = true, $xml = true)
), array(
"</p>\n<p>",
'$1<br' . ($xml == true ? ' /' : '') . '>$2'
), trim($string)) . '</p>';
), rtrim($string)) . '</p>';
else
return '<p>' . preg_replace(array(
"/([\n]{2,})/i",
@ -698,7 +698,7 @@ function nl2p($string, $line_breaks = true, $xml = true)
"</p>\n<p>",
"</p>\n<p>",
'$1<br' . ($xml == true ? ' /' : '') . '>$2'
), trim($string)) . '</p>';
), rtrim($string)) . '</p>';
}
/*