fix: format everything

drew created

Change summary

fetcher/fetcher.go | 4 ++--
main.go            | 3 +--
tui/messages.go    | 2 +-
tui/styles.go      | 2 +-
view/html.go       | 2 +-
5 files changed, 6 insertions(+), 7 deletions(-)

Detailed changes

fetcher/fetcher.go 🔗

@@ -248,7 +248,7 @@ func FetchEmailBody(cfg *config.Config, uid uint32) (string, []Attachment, error
 	if textPartID != "" {
 		partMessages := make(chan *imap.Message, 1)
 		partDone := make(chan error, 1)
-		
+
 		fetchItem := imap.FetchItem(fmt.Sprintf("BODY.PEEK[%s]", textPartID))
 		section, err := imap.ParseBodySectionName(fetchItem)
 		if err != nil {
@@ -400,4 +400,4 @@ func ArchiveEmail(cfg *config.Config, uid uint32) error {
 		archiveMailbox = "Archive"
 	}
 	return moveEmail(cfg, uid, archiveMailbox)
-}
+}

main.go 🔗

@@ -166,7 +166,7 @@ func (m *mainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 		// Use the index from the message to update the correct email
 		m.emails[msg.Index].Body = msg.Body
 		m.emails[msg.Index].Attachments = msg.Attachments
-		
+
 		emailView := tui.NewEmailView(m.emails[msg.Index], m.width, m.height)
 		m.current = emailView
 		return m, m.current.Init()
@@ -280,7 +280,6 @@ func fetchEmailBodyCmd(cfg *config.Config, email fetcher.Email, index int) tea.C
 	}
 }
 
-
 func markdownToHTML(md []byte) []byte {
 	var buf bytes.Buffer
 	p := goldmark.New(goldmark.WithRendererOptions(html.WithUnsafe()))

tui/messages.go 🔗

@@ -91,7 +91,7 @@ type DownloadAttachmentMsg struct {
 	Index    int
 	Filename string
 	PartID   string
-	Data     []byte 
+	Data     []byte
 }
 
 type AttachmentDownloadedMsg struct {

tui/styles.go 🔗

@@ -33,7 +33,7 @@ var (
 		Align(lipgloss.Center)
 
 	BodyStyle = lipgloss.NewStyle().
-		Bold(true) // A bit bold
+			Bold(true) // A bit bold
 )
 
 var DocStyle = lipgloss.NewStyle().Margin(1, 2)

view/html.go 🔗

@@ -107,4 +107,4 @@ func ProcessBody(rawBody string, h1Style, h2Style, bodyStyle lipgloss.Style) (st
 	re := regexp.MustCompile(`\n{3,}`)
 	text = re.ReplaceAllString(text, "\n\n")
 	return bodyStyle.Render(text), nil
-}
+}