From c028cc653f05849fe90736d8573f139ad80c6cac Mon Sep 17 00:00:00 2001
From: Retro_Guy
Date: Mon, 11 Dec 2023 04:46:42 -0700
Subject: [PATCH] Fix removal of whitespace at start of message display, which
broke ASCII art, etc.
---
Rocksolid_Light/rocksolid/lib/message.inc.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php
index d2bde0e..7b3e53e 100644
--- a/Rocksolid_Light/rocksolid/lib/message.inc.php
+++ b/Rocksolid_Light/rocksolid/lib/message.inc.php
@@ -688,7 +688,7 @@ function nl2p($string, $line_breaks = true, $xml = true)
), array(
"
\n",
'$1
$2'
- ), trim($string)) . '
';
+ ), rtrim($string)) . '';
else
return '' . preg_replace(array(
"/([\n]{2,})/i",
@@ -698,7 +698,7 @@ function nl2p($string, $line_breaks = true, $xml = true)
"
\n",
"
\n",
'$1
$2'
- ), trim($string)) . '
';
+ ), rtrim($string)) . '';
}
/*