Make plaintext width 21 characters

This commit is contained in:
Paul Brinkmeier 2024-07-18 19:34:35 +02:00
parent 071df1a0fa
commit e57966523e
2 changed files with 4 additions and 3 deletions

View File

@ -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} = {

View File

@ -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,
)
}