From 64735245e73de95b5fda4bad248196e5fd44c3de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 2 Sep 2024 16:02:05 +0800 Subject: [PATCH] Presets: use string padding syntax Fix #1237 --- presets/examples/20.jsonc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/presets/examples/20.jsonc b/presets/examples/20.jsonc index 162e813f3..830daff3a 100644 --- a/presets/examples/20.jsonc +++ b/presets/examples/20.jsonc @@ -111,8 +111,7 @@ { "type": "loadavg", "compact": false, - // {duration} is not fixed length, hack it - "key": "│ LOAD \u001b[s{duration}m\u001b[u\u001b[6C│{$1}" + "key": "│ LOAD {duration>2}m │{$1}" // pad duration to 2 chars }, { "type": "custom",