diff --git a/tui/email_view_test.go b/tui/email_view_test.go index 2185370fd5dbcca85c01ed5b976f2c725fe52d7b..67b4ec5d39ff0a005c35bd4ba176c967e0c4956e 100644 --- a/tui/email_view_test.go +++ b/tui/email_view_test.go @@ -137,4 +137,4 @@ func TestEmailViewUpdate(t *testing.T) { t.Errorf("Expected reply to have subject '%s', but got '%s'", emailWithAttachments.Subject, replyMsg.Email.Subject) } }) -} \ No newline at end of file +} diff --git a/view/html.go b/view/html.go index 1ef610880ed0c5ba7f24b8cae3f930182e1b544f..436ddff54a7edea1392ba2a59df4314f4ac609ae 100644 --- a/view/html.go +++ b/view/html.go @@ -112,4 +112,4 @@ func ProcessBody(rawBody string, h1Style, h2Style, bodyStyle lipgloss.Style) (st text = strings.TrimSpace(text) return bodyStyle.Render(text), nil -} \ No newline at end of file +} diff --git a/view/html_test.go b/view/html_test.go index e785914f0fd6bf26ee291fc8f90c5a998f3f4b05..b0d427c5c5ba427cad747d4b6e8a5f25e8239490 100644 --- a/view/html_test.go +++ b/view/html_test.go @@ -98,8 +98,8 @@ func TestProcessBody(t *testing.T) { expected: "Click here", }, { - name: "With image HTML", - input: `alt text`, + name: "With image HTML", + input: `alt text`, expected: "[Click here to view image: alt text]", }, { @@ -113,8 +113,8 @@ func TestProcessBody(t *testing.T) { expected: "Click here", }, { - name: "With image Markdown", - input: `![alt text](http://example.com/img.png)>`, + name: "With image Markdown", + input: `![alt text](http://example.com/img.png)>`, expected: "[Click here to view image: alt text]", }, { @@ -136,4 +136,4 @@ func TestProcessBody(t *testing.T) { } }) } -} \ No newline at end of file +}