add brackets for PrintB if its default
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user