From 8c7803c153edf0d06fa37053faa2e093ded00b4f Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 20 Oct 2021 00:03:05 -0400 Subject: Fix bug in message rendering Using   keeps original whitespace visible, but because it is non blocking, prevents any line wraps. Use &ensp13; instead, since it is blockable, and most accurately displays as the previous version did. Fixes 12c7230cf6bc. Signed-off-by: Malfurious --- app/class/mesg.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php index 2104519..a1a331f 100644 --- a/app/class/mesg.class.php +++ b/app/class/mesg.class.php @@ -226,7 +226,7 @@ class mesg extends obj } else { - $mesg = nl2br(str_replace(" ", " ", $this->mesg)); + $mesg = nl2br(str_replace(" ", " ", $this->mesg)); $mesg = preg_replace('/^(\s*>.*)$/m', '${1}', $mesg); } -- cgit v1.2.3