4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-03 11:57:45 +00:00

Update vendor for next release (#1343)

This commit is contained in:
Wim
2020-12-31 14:48:12 +01:00
committed by GitHub
parent a9f89dbc64
commit 4f20ebead3
220 changed files with 11469 additions and 2195 deletions

View File

@ -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")
}