diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-11-10 11:00:21 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-11-10 11:00:21 -0500 |
commit | cb7d7a043892e9911491c3acc32a36b61d891ea7 (patch) | |
tree | d38079aaad1e9048ce4118fcd8691652be2ed614 /widgets | |
parent | 3ba69edab5f0c787424dac9649e43a7743da13ca (diff) | |
download | aerc-cb7d7a043892e9911491c3acc32a36b61d891ea7.tar.gz |
Add some defaults for template options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/compose.go | 6 |
1 files changed, 4 insertions, 2 deletions
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 } |