Skip to content

Commit

Permalink
Remove redundant links
Browse files Browse the repository at this point in the history
Do not add item's link to the body since it is shown in the rendered
headers.
  • Loading branch information
StayPirate committed May 3, 2022
1 parent 87d6993 commit b576a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions template/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,13 @@ Content-Type: multipart/alternative; boundary=4186c39e13b2140c88094b3933206336f2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

{{quoteprintable .Link}}

{{.Text}}

{{quoteprintable .Link}}
--4186c39e13b2140c88094b3933206336f2bb3948db7ecf064c7a7d7473f2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p><a href=3D"{{quoteprintable .Link}}">{{quoteprintable .Subject}}</a></p>
{{.HTML}}
<p><a href=3D"{{quoteprintable .Link}}">{{quoteprintable .Subject}}</a></p>
--4186c39e13b2140c88094b3933206336f2bb3948db7ecf064c7a7d7473f2--

--76a1282373c08a65dd49db1dea2c55111fda9a715c89720a844fabb7d497--
Expand Down
4 changes: 2 additions & 2 deletions template/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "testing"

func TestTemplate(t *testing.T) {
content := EmailTemplate()
if len(content) != 2265 {
t.Fatalf("unexpected template size 2265 != %d", len(content))
if len(content) != 2062 {
t.Fatalf("unexpected template size 2062 != %d", len(content))
}
}

0 comments on commit b576a7a

Please sign in to comment.