diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-21 22:20:42 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-21 22:20:42 +0200 |
commit | 0179262628cadd3ed402880a03f3d812f327feec (patch) | |
tree | 32c193f533087edf0916d11d61e0fa33172f8961 /internal/template/feed.tpl.go | |
parent | 89f46e31998dd62a52d7dd07b16f1d81d9597e3e (diff) | |
download | feed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.tar.gz feed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.tar.bz2 feed2imap-go-0179262628cadd3ed402880a03f3d812f327feec.zip |
Improved HTML creation
Diffstat (limited to 'internal/template/feed.tpl.go')
-rw-r--r-- | internal/template/feed.tpl.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/template/feed.tpl.go b/internal/template/feed.tpl.go index f6862d5..2bf07f3 100644 --- a/internal/template/feed.tpl.go +++ b/internal/template/feed.tpl.go @@ -40,9 +40,13 @@ const feedTpl = `{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feedi </td> </tr> </table> +{{with .Item.Description}} + <br /> <!-- originally: only if content and 'content !~ /\A\s*</m' --> + {{html .}} +{{end}} {{with .Item.Content}} <br /> <!-- originally: only if content and 'content !~ /\A\s*</m' --> - {{.}} + {{html .}} {{end}} {{with .Item.Enclosures}} <table border="1" width="100%" cellpadding="0" cellspacing="0" style="border-spacing: 0; "> |