aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorDemonKingSwarn <rockingswarn@gmail.com>2025-06-16 16:10:55 +0530
committerDemonKingSwarn <rockingswarn@gmail.com>2025-06-16 16:10:55 +0530
commit2f56d92438869c2465ef2d619f0c470c2cf1a335 (patch)
tree9d7e3c5b5e980caf526fd7be7afa19b92900cfa2 /Program.cs
parent333f7d1f4757855cbdb84e51ac64f52be226e753 (diff)
downloadhypr-wellbeing-2f56d92438869c2465ef2d619f0c470c2cf1a335.zip
hypr-wellbeing-2f56d92438869c2465ef2d619f0c470c2cf1a335.tar.gz
chore: better word wrapping
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Program.cs b/Program.cs
index 15011ed..d57fe2c 100644
--- a/Program.cs
+++ b/Program.cs
@@ -70,7 +70,8 @@ class Program
foreach (var entry in data)
{
- Console.WriteLine($"{blue}{entry.Key,-30}{reset}{green}{entry.Value,30}{reset}");
+ string key = entry.Key.Length > 30 ? entry.Key.Substring(0, 27) + "..." : entry.Key;
+ Console.WriteLine($"{blue}{key,-30}{reset}{green}{entry.Value,30}{reset}");
}
}