From abe91b14f1742abdfd8f0dc80a38dd8840c5de79 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 10 May 2020 23:07:24 +0200 Subject: Switch to our own html2text fork for the time being --- internal/feed/mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/feed/mail.go b/internal/feed/mail.go index 4cdc57a..c03a27b 100644 --- a/internal/feed/mail.go +++ b/internal/feed/mail.go @@ -11,11 +11,11 @@ import ( "strings" "time" + "github.com/Necoro/html2text" "github.com/PuerkitoBio/goquery" "github.com/emersion/go-message" "github.com/emersion/go-message/mail" "github.com/gabriel-vasile/mimetype" - "github.com/jaytaylor/html2text" "golang.org/x/net/html" "github.com/Necoro/feed2imap-go/internal/feed/template" @@ -266,7 +266,7 @@ func (item *item) buildBody() { } if feed.Global.WithPartText() { - if item.TextBody, err = html2text.FromHTMLNode(bodyNode); err != nil { + if item.TextBody, err = html2text.FromHTMLNode(bodyNode, html2text.Options{CitationStyleLinks: true}); err != nil { log.Errorf("Feed %s: Item %s: Error while converting html to text: %s", feed.Name, item.Link, err) } } -- cgit v1.2.3-54-g00ecf