From 4f20ebead36876a88391bf033d1de3e4cf0228da Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 31 Dec 2020 14:48:12 +0100 Subject: Update vendor for next release (#1343) --- vendor/github.com/mattn/godown/godown.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/github.com/mattn/godown') 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") } -- cgit v1.2.3