all repos — navani @ 8e576664699c9c4a292bd9ffda650d7b0e8e086b

forlater's primary mail processing service

Use lynx instead of w3m
Anirudh Oppiliappan x@icyphox.sh
Tue, 14 Sep 2021 21:48:34 +0530
commit

8e576664699c9c4a292bd9ffda650d7b0e8e086b

parent

8fa6f8f5661a8f116048e75a54e07db69e3f8f7a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M reader/plain.goreader/plain.go

@@ -6,8 +6,8 @@ "strings"

) func MakePlaintext(html []byte) ([]byte, error) { - args := []string{"-T", "text/html", "-dump"} - cmd := exec.Command("w3m", args...) + args := []string{"-image_links", "-dump", "-stdin"} + cmd := exec.Command("lynx", args...) cmd.Stdin = strings.NewReader(string(html)) out, err := cmd.Output() if err != nil {