fix padding when non-ascii is used
This commit is contained in:
parent
5c7c1c261d
commit
a7f70b2cb9
|
@ -439,7 +439,7 @@ func fmtPadding(descr fileDescription, nopadding bool) (string, string, string)
|
||||||
}
|
}
|
||||||
pad := 0
|
pad := 0
|
||||||
for _, part := range descr.parts {
|
for _, part := range descr.parts {
|
||||||
if n := len(part.name); n > pad {
|
if n := len([]rune(part.name)); n > pad {
|
||||||
pad = n
|
pad = n
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user