aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index a55d147f..cae51037 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
}