1
0
mirror of https://github.com/muesli/duf synced 2024-07-01 06:54:37 +00:00

gofmt style.go

This commit is contained in:
Christian Muehlhaeuser 2021-03-22 18:33:02 +01:00
parent e1b4a2d9aa
commit 297032b4a2

View File

@ -4,9 +4,9 @@ import "github.com/mattn/go-runewidth"
func defaultStyleName() string {
/*
Due to a bug in github.com/mattn/go-runewidth v0.0.9, the width of unicode rune(such as '╭') could not be correctly
calculated. Degrade to ascii to prevent broken table structure. Remove this once the bug is fixed.
*/
Due to a bug in github.com/mattn/go-runewidth v0.0.9, the width of unicode rune(such as '╭') could not be correctly
calculated. Degrade to ascii to prevent broken table structure. Remove this once the bug is fixed.
*/
if runewidth.RuneWidth('╭') > 1 {
return "ascii"
}