From e57966523e8ce3c0e4e5fa84a58275b1d2ae302d Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Thu, 18 Jul 2024 19:34:35 +0200 Subject: [PATCH] Make plaintext width 21 characters --- flake.nix | 3 ++- main.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9d009f3..daa32dc 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,7 @@ vrnp-static = pkgs.buildGoModule { pname = "vrnp"; - version = "0.0.0"; + version = "0.0.1"; vendorHash = null; # For building the package, we use only the files not ignored by Git as inputs. @@ -34,6 +34,7 @@ devShell.${system} = pkgs.mkShellNoCC { packages = [ pkgs.go + (pkgs.python3.withPackages (ps: with ps; [ pillow ])) ]; }; packages.${system} = { diff --git a/main.go b/main.go index 05b0052..b566d11 100644 --- a/main.go +++ b/main.go @@ -143,9 +143,9 @@ func main() { } } - fmt.Fprintf(w, "%2s %-22s %6s\n", + fmt.Fprintf(w, "%2s %-11s %6s\n", d.ServingLine.Symbol, - direction[:min(len(direction), 22)], + direction[:min(len(direction), 11)], leaving, ) }