File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -493,21 +493,33 @@ func (m *Message) Describe(indent int) {
493493 for _ , q := range m .Questions {
494494 q .Describe (indent + 1 )
495495 }
496+ if len (m .Questions ) > 0 {
497+ fmt .Printf ("%s │ └───\n " , indentPrompt )
498+ }
496499
497500 fmt .Printf ("%s │ \x1b [93mAnswers\x1b [0m (%d):\n " , indentPrompt , len (m .Answers ))
498501 for _ , a := range m .Answers {
499502 a .Describe (indent + 1 )
500503 }
504+ if len (m .Answers ) > 0 {
505+ fmt .Printf ("%s │ └───\n " , indentPrompt )
506+ }
501507
502508 fmt .Printf ("%s │ \x1b [93mAuthority\x1b [0m (%d):\n " , indentPrompt , len (m .Authority ))
503509 for _ , a := range m .Authority {
504510 a .Describe (indent + 1 )
505511 }
512+ if len (m .Authority ) > 0 {
513+ fmt .Printf ("%s │ └───\n " , indentPrompt )
514+ }
506515
507516 fmt .Printf ("%s │ \x1b [93mAdditional\x1b [0m (%d):\n " , indentPrompt , len (m .Additional ))
508517 for _ , a := range m .Additional {
509518 a .Describe (indent + 1 )
510519 }
520+ if len (m .Additional ) > 0 {
521+ fmt .Printf ("%s │ └───\n " , indentPrompt )
522+ }
511523
512524 fmt .Printf ("%s └───\n " , indentPrompt )
513525}
You can’t perform that action at this time.
0 commit comments