From 44d52ca74fabfecc3b47a31ccdcbdded5300170f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 16 Feb 2021 19:35:14 +0100 Subject: Fix CRLF ending --- internal/feed/template/html.tpl | 114 ++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'internal') diff --git a/internal/feed/template/html.tpl b/internal/feed/template/html.tpl index b320ebb..aa7d341 100644 --- a/internal/feed/template/html.tpl +++ b/internal/feed/template/html.tpl @@ -1,58 +1,58 @@ -{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feeditem*/ -}} -{{define "bottomLine"}} - {{if .content}} - - - {{.descr}}   - - - {{.content}} - - - {{end}} -{{end}} - - - - - - - - - -
Feed - {{with .Feed.Link}}{{end}} - {{or .Feed.Title .Feed.Link "Unnammed feed"}} - {{if .Feed.Link}}{{end}} -
Item - {{with .Item.Link}}{{end}} - {{or .Item.Title .Item.Link}} - {{if .Item.Link}}{{end}} -
-{{with .Body}} - {{html .}} -{{end}} -{{with .Item.Enclosures}} - - - - - {{range .}} - - - - {{end}} -
Files:
-     - {{.URL | lastUrlPart}} ({{with .Length}}{{. | byteCount}}, {{end}}{{.Type}}) -
-{{end}} -
- - {{template "bottomLine" (dict "descr" "Date:" "content" .Date)}} - {{template "bottomLine" (dict "descr" "Author:" "content" .Creator)}} - {{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Categories))}} - {{with .FeedLink}} - {{template "bottomLine" (dict "descr" "Feed-Link:" "content" (print "" . "" | html))}} - {{end}} +{{- /*gotype:github.com/Necoro/feed2imap-go/internal/feed.feeditem*/ -}} +{{define "bottomLine"}} + {{if .content}} + + + + + {{end}} +{{end}} +
+ {{.descr}}   + + {{.content}} +
+ + + + + + + + +
Feed + {{with .Feed.Link}}{{end}} + {{or .Feed.Title .Feed.Link "Unnammed feed"}} + {{if .Feed.Link}}{{end}} +
Item + {{with .Item.Link}}{{end}} + {{or .Item.Title .Item.Link}} + {{if .Item.Link}}{{end}} +
+{{with .Body}} + {{html .}} +{{end}} +{{with .Item.Enclosures}} + + + + + {{range .}} + + + + {{end}} +
Files:
+     + {{.URL | lastUrlPart}} ({{with .Length}}{{. | byteCount}}, {{end}}{{.Type}}) +
+{{end}} +
+ + {{template "bottomLine" (dict "descr" "Date:" "content" .Date)}} + {{template "bottomLine" (dict "descr" "Author:" "content" .Creator)}} + {{template "bottomLine" (dict "descr" "Filed under:" "content" (join ", " .Categories))}} + {{with .FeedLink}} + {{template "bottomLine" (dict "descr" "Feed-Link:" "content" (print "" . "" | html))}} + {{end}}
\ No newline at end of file -- cgit v1.2.3