URI:
       slstatus: add fmt-human-no-space patch - sites - public wiki contents of suckless.org
  HTML git clone git://git.suckless.org/sites
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit 4eb005590387738d55590932ec8cd559ea92bcc6
   DIR parent 90c22f48b42827a037bbf1fada8c8a7c49f58942
  HTML Author: r1w1s1 <r1w1s1@fastmail.com>
       Date:   Sun,  7 Jun 2026 19:28:22 -0300
       
       slstatus: add fmt-human-no-space patch
       
       Diffstat:
         A tools.suckless.org/slstatus/patche… |      31 +++++++++++++++++++++++++++++++
         A tools.suckless.org/slstatus/patche… |      25 +++++++++++++++++++++++++
       
       2 files changed, 56 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/tools.suckless.org/slstatus/patches/fmt-human-no-space/index.md b/tools.suckless.org/slstatus/patches/fmt-human-no-space/index.md
       @@ -0,0 +1,31 @@
       +fmt-human-no-space
       +==================
       +
       +Description
       +===========
       +
       +Remove the space between the numeric value and the unit in
       +`fmt_human()` output.
       +
       +The default formatting follows SI/NIST conventions. This patch is
       +intended for status bars where horizontal space is limited.
       +
       +Before:
       +
       +    1.2 GiB
       +    42 °C
       +
       +After:
       +
       +    1.2GiB
       +    42°C
       +
       +Download
       +========
       +
       +* [slstatus-fmt-human-no-space-20260514-3739d9f.diff](slstatus-fmt-human-no-space-20260514-3739d9f.diff)
       +
       +Authors
       +=======
       +
       +* r1w1s1 <r1w1s1@fastmail.com>
   DIR diff --git a/tools.suckless.org/slstatus/patches/fmt-human-no-space/slstatus-fmt-human-no-space-20260514-3739d9f.diff b/tools.suckless.org/slstatus/patches/fmt-human-no-space/slstatus-fmt-human-no-space-20260514-3739d9f.diff
       @@ -0,0 +1,25 @@
       +From 3739d9f9c34119e77c2c7f4b80a45525279684e5 Mon Sep 17 00:00:00 2001
       +From: r1w1s1 <r1w1s1@fastmail.com>
       +Date: Thu, 14 May 2026 21:48:11 -0300
       +Subject: [PATCH] slstatus: remove space from fmt_human()
       +
       +---
       + util.c | 2 +-
       + 1 file changed, 1 insertion(+), 1 deletion(-)
       +
       +diff --git a/util.c b/util.c
       +index d33cf9d..82cd404 100644
       +--- a/util.c
       ++++ b/util.c
       +@@ -118,7 +118,7 @@ fmt_human(uintmax_t num, int base)
       +         for (i = 0; i < prefixlen && scaled >= base; i++)
       +                 scaled /= base;
       + 
       +-        return bprintf("%.1f %s", scaled, prefix[i]);
       ++        return bprintf("%.1f%s", scaled, prefix[i]);
       + }
       + 
       + int
       +-- 
       +2.54.0
       +