Skip to content

Commit

Permalink
Issue 510: fix root text style in TreePrinter
Browse files Browse the repository at this point in the history
  • Loading branch information
dedefer committed May 24, 2023
1 parent 4586e84 commit b37e436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree_printer.go
Expand Up @@ -124,7 +124,7 @@ func (p TreePrinter) Srender() (string, error) {

var result string
if p.Root.Text != "" {
result += p.Root.Text + "\n"
result += p.TextStyle.Sprint(p.Root.Text) + "\n"
}
result += walkOverTree(p.Root.Children, p, "")
return result, nil
Expand Down

0 comments on commit b37e436

Please sign in to comment.