From 3c50c6ffd84aee599dd5cfbe6e3dd064a8624b9f Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 30 May 2024 09:46:37 +0200 Subject: [PATCH] Update description --- taskwarrior/models.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/taskwarrior/models.go b/taskwarrior/models.go index d61b65a..3636a9c 100644 --- a/taskwarrior/models.go +++ b/taskwarrior/models.go @@ -93,12 +93,14 @@ func (t *Task) GetString(fieldWFormat string) string { if len(t.Annotations) == 0 { return t.Description } else { - var annotations []string - for _, a := range t.Annotations { - annotations = append(annotations, a.String()) - } - // TODO support for multiline? - return fmt.Sprintf("%s %s", t.Description, strings.Join(annotations, " ")) + // var annotations []string + // for _, a := range t.Annotations { + // annotations = append(annotations, a.String()) + // } + // return fmt.Sprintf("%s\n%s", t.Description, strings.Join(annotations, "\n")) + + // TODO enable support for multiline in table + return fmt.Sprintf("%s [%d]", t.Description, len(t.Annotations)) } case "project":