Update description

This commit is contained in:
Martin
2024-05-30 09:46:37 +02:00
parent 5d70a248dc
commit 3c50c6ffd8

View File

@ -93,12 +93,14 @@ func (t *Task) GetString(fieldWFormat string) string {
if len(t.Annotations) == 0 { if len(t.Annotations) == 0 {
return t.Description return t.Description
} else { } else {
var annotations []string // var annotations []string
for _, a := range t.Annotations { // for _, a := range t.Annotations {
annotations = append(annotations, a.String()) // annotations = append(annotations, a.String())
} // }
// TODO support for multiline? // return fmt.Sprintf("%s\n%s", t.Description, strings.Join(annotations, "\n"))
return fmt.Sprintf("%s %s", t.Description, strings.Join(annotations, " "))
// TODO enable support for multiline in table
return fmt.Sprintf("%s [%d]", t.Description, len(t.Annotations))
} }
case "project": case "project":