Skip to content

Commit

Permalink
bugfix: display of last line of not in table
Browse files Browse the repository at this point in the history
  • Loading branch information
naggie committed Jun 8, 2023
1 parent 7899226 commit 3c06303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion task.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ func (t *Task) Validate() error {

// provides Summary + Last note if available
func (t *Task) LongSummary() string {
noteLines := strings.Split(t.Notes, "\n")
notes := strings.TrimSpace(t.Notes)
noteLines := strings.Split(notes, "\n")
lastNote := noteLines[len(noteLines)-1]

if len(lastNote) > 0 {
Expand Down

0 comments on commit 3c06303

Please sign in to comment.