From 9b8018ff266b9ffb19929567cd436de93b6e8704 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 11 Feb 2023 19:46:29 -0500 Subject: [PATCH] alt text for hoot images --- hoot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoot.go b/hoot.go index f1f7ae9..58b2fdb 100644 --- a/hoot.go +++ b/hoot.go @@ -57,7 +57,7 @@ func hootextractor(r io.Reader, url string, seen map[string]bool) string { if htfilter.HasClass(node, "Emoji") && alt != "" { return alt } - return fmt.Sprintf(" ", htfilter.GetAttr(node, "src")) + return fmt.Sprintf(" %s", htfilter.GetAttr(node, "src"), alt) } var buf strings.Builder