aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed/mail.go')
-rw-r--r--internal/feed/mail.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index f77987e..ecd21ef 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -16,7 +16,6 @@ import (
"github.com/emersion/go-message"
"github.com/emersion/go-message/mail"
"github.com/gabriel-vasile/mimetype"
- "golang.org/x/net/html"
"github.com/Necoro/feed2imap-go/internal/feed/template"
"github.com/Necoro/feed2imap-go/internal/http"
@@ -241,13 +240,6 @@ func getBody(content, description string, bodyCfg config.Body) string {
}
}
-func startsWithText(str string) bool {
- reader := strings.NewReader(str)
- tokenizer := html.NewTokenizerFragment(reader, "")
-
- return tokenizer.Next() == html.TextToken
-}
-
func (item *item) buildBody() {
feed := item.feed
feedUrl, err := url.Parse(feed.Url)
@@ -256,9 +248,6 @@ func (item *item) buildBody() {
}
body := getBody(item.Content, item.Description, feed.Body)
- if body != "" && startsWithText(body) {
- body = "<br />" + body
- }
if !feed.InclImages {
item.Body = body
>2008-06-23Fixed name of gpytage pluginRené 'Necoro' Neumann1-1/+1 2008-06-23Moved GtkThread to gui.utilsRené 'Necoro' Neumann5-29/+25 2008-06-22Implemented the mail sendingRené 'Necoro' Neumann2-3/+63 2008-06-22First mail window draftRené 'Necoro' Neumann3-0/+220 2008-06-10Added gpytage pluginRené 'Necoro' Neumann2-0/+29 2008-06-10Modified plugin.xsd so it allows also menu-only pluginsRené 'Necoro' Neumann2-7/+8 2008-06-10Fixed the default handlingRené 'Necoro' Neumann1-1/+1 2008-06-10Allowed default for session; load 'app-portage/portato' as default for select...René 'Necoro' Neumann2-10/+18 2008-06-09Fixed 'kill' in the systray popupRené 'Necoro' Neumann1-2/+2 2008-06-09Fixed error messageRené 'Necoro' Neumann2-4/+1 2008-06-08Make blocks way more intelligentRené 'Necoro' Neumann3-45/+107