summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-10-20 00:03:05 -0400
committerMalfurious <m@lfurio.us>2021-10-20 00:03:05 -0400
commit8c7803c153edf0d06fa37053faa2e093ded00b4f (patch)
tree859834d508844e5ee0ca18d9f04175ec214652b7
parent11c71fb05a3115f470230de9a5fb88fac1385010 (diff)
downloadscrott-8c7803c153edf0d06fa37053faa2e093ded00b4f.tar.gz
scrott-8c7803c153edf0d06fa37053faa2e093ded00b4f.zip
Fix bug in message rendering
Using &nbsp; 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 <m@lfurio.us>
-rw-r--r--app/class/mesg.class.php2
1 files changed, 1 insertions, 1 deletions
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(" ", "&nbsp;", $this->mesg));
+ $mesg = nl2br(str_replace(" ", "&emsp13;", $this->mesg));
$mesg = preg_replace('/^(\s*&gt;.*)$/m', '<span class="text-success">${1}</span>', $mesg);
}