summaryrefslogtreecommitdiff
path: root/lib/JWebmail
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-09-07 15:59:11 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-09-07 15:59:11 +0200
commit065f17c4b0ffafa1d78f1c901667d26f4591ffc2 (patch)
tree1ed505a74b4d6fefdce89d808886a3301bb52bc3 /lib/JWebmail
parent8659fae92a89007786578460552dd3e19b0f2b11 (diff)
better number formatting for HTML
Diffstat (limited to 'lib/JWebmail')
-rw-r--r--lib/JWebmail/View/Webmail.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/JWebmail/View/Webmail.pm b/lib/JWebmail/View/Webmail.pm
index 778253d..3c155d5 100644
--- a/lib/JWebmail/View/Webmail.pm
+++ b/lib/JWebmail/View/Webmail.pm
@@ -2,6 +2,8 @@ package JWebmail::View::Webmail;
use Mojo::Base -base;
+use Mojo::ByteStream 'b';
+
use POSIX qw(floor round log);
@@ -22,7 +24,7 @@ sub print_sizes10 {
$PREFIX[4] = 'TByte';
$PREFIX[5] = 'PByte';
- return sprintf('%.0f %s', $var / (10**$expo), $PREFIX[$i]);
+ return b sprintf('%.0f&nbsp;%s', $var / (10**$expo), $PREFIX[$i]);
}
sub print_sizes2 {