aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
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}");
}
}