diff options
author | Malfurious <m@lfurio.us> | 2021-10-20 00:03:05 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-10-20 00:03:05 -0400 |
commit | 8c7803c153edf0d06fa37053faa2e093ded00b4f (patch) | |
tree | 859834d508844e5ee0ca18d9f04175ec214652b7 /app | |
parent | 11c71fb05a3115f470230de9a5fb88fac1385010 (diff) | |
download | scrott-8c7803c153edf0d06fa37053faa2e093ded00b4f.tar.gz scrott-8c7803c153edf0d06fa37053faa2e093ded00b4f.zip |
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 <m@lfurio.us>
Diffstat (limited to 'app')
-rw-r--r-- | app/class/mesg.class.php | 2 |
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(" ", " ", $this->mesg)); + $mesg = nl2br(str_replace(" ", " ", $this->mesg)); $mesg = preg_replace('/^(\s*>.*)$/m', '<span class="text-success">${1}</span>', $mesg); } |