about summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-11-10 11:00:21 -0500
committerDrew DeVault <sir@cmpwn.com>2019-11-10 11:00:21 -0500
commitcb7d7a043892e9911491c3acc32a36b61d891ea7 (patch)
treed38079aaad1e9048ce4118fcd8691652be2ed614 /widgets/compose.go
parent3ba69edab5f0c787424dac9649e43a7743da13ca (diff)
downloadaerc-cb7d7a043892e9911491c3acc32a36b61d891ea7.tar.gz
Add some defaults for template options
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go6
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
 	}