Skip to content

Commit

Permalink
Merge pull request #511 from dedefer/issue-510-fix-TreePrinter-root-t…
Browse files Browse the repository at this point in the history
…ext-style
  • Loading branch information
MarvinJWendt committed May 24, 2023
2 parents 4586e84 + b37e436 commit 4c7b0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree_printer.go
Original file line number Diff line number Diff line change
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 4c7b0f6

Please sign in to comment.