add brackets for PrintB if its default

This commit is contained in:
Christian Goll
2022-06-23 12:35:19 +02:00
parent 235c23c516
commit 3ced0e2836

View File

@@ -264,7 +264,10 @@ func (ent *Entry) PrintComb() string {
same as GetB()
*/
func (ent *Entry) PrintB() string {
return fmt.Sprintf("%t", ent.GetB())
if len(ent.value) != 0 || len(ent.altvalue) != 0 {
return fmt.Sprintf("%t", ent.GetB())
}
return fmt.Sprintf("(%t)", ent.GetB())
}
/*