gui: strip extra quote marks from string cells

This commit is contained in:
mappu 2024-06-15 12:14:54 +12:00
parent 5e0422e10f
commit 5d268d22af

View File

@ -14,9 +14,14 @@ func formatUtf8(in []byte) string {
} }
func formatAny(in interface{}) string { func formatAny(in interface{}) string {
if _, ok := in.([]byte); ok { switch in := in.(type) {
case []byte:
return "<<binary>>" return "<<binary>>"
}
case string:
return in
default:
return fmt.Sprintf("%#v", in) return fmt.Sprintf("%#v", in)
}
} }