From a7f70b2cb9ebf5d860c6db72c58d8252006896ef Mon Sep 17 00:00:00 2001 From: gutmet Date: Mon, 12 Oct 2020 09:33:05 +0200 Subject: [PATCH] fix padding when non-ascii is used --- laymanshex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laymanshex.go b/laymanshex.go index dd7b988..23b12ab 100644 --- a/laymanshex.go +++ b/laymanshex.go @@ -439,7 +439,7 @@ func fmtPadding(descr fileDescription, nopadding bool) (string, string, string) } pad := 0 for _, part := range descr.parts { - if n := len(part.name); n > pad { + if n := len([]rune(part.name)); n > pad { pad = n } }