From cb7d7a043892e9911491c3acc32a36b61d891ea7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Nov 2019 11:00:21 -0500 Subject: Add some defaults for template options --- widgets/compose.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/compose.go b/widgets/compose.go index a55d147..cae5103 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -54,7 +54,8 @@ type Composer struct { } func NewComposer(aerc *Aerc, conf *config.AercConfig, - acct *config.AccountConfig, worker *types.Worker, template string, defaults map[string]string) (*Composer, error) { + acct *config.AccountConfig, worker *types.Worker, template string, + defaults map[string]string) (*Composer, error) { if defaults == nil { defaults = make(map[string]string) @@ -173,7 +174,8 @@ func (c *Composer) AddTemplate(template string, data interface{}) error { return nil } - templateText, err := templates.ParseTemplateFromFile(template, c.config.Templates.TemplateDirs, data) + templateText, err := templates.ParseTemplateFromFile( + template, c.config.Templates.TemplateDirs, data) if err != nil { return err } -- cgit 1.4.1-2-gfad0