diff options
Diffstat (limited to 'vendor/github.com/mattn/godown')
-rw-r--r-- | vendor/github.com/mattn/godown/godown.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/mattn/godown/godown.go b/vendor/github.com/mattn/godown/godown.go index 5aae9690..12f59882 100644 --- a/vendor/github.com/mattn/godown/godown.go +++ b/vendor/github.com/mattn/godown/godown.go @@ -303,10 +303,10 @@ func walk(node *html.Node, w io.Writer, nest int, option *Option) { walk(c, &buf, 1, option) if lines := strings.Split(strings.TrimSpace(buf.String()), "\n"); len(lines) > 0 { for i, l := range lines { - if i > 0 || nest > 0 { + if i > 0 { fmt.Fprint(w, "\n") } - fmt.Fprint(w, strings.Repeat(" ", nest)+strings.TrimSpace(l)) + fmt.Fprint(w, strings.Repeat(" ", nest)+l) } fmt.Fprint(w, "\n") } |