Fix formatting of ReminderWhile

This commit is contained in:
Joscha 2021-12-21 19:56:31 +01:00
parent 07ce85982c
commit 12c86e0d28

View file

@ -154,7 +154,7 @@ impl LineLayout {
DayEntry::ReminderWhile(i, d) => { DayEntry::ReminderWhile(i, d) => {
let text = Self::format_entry(files, entries, *i); let text = Self::format_entry(files, entries, *i);
let plural = if *d == 1 { "" } else { "s" }; let plural = if *d == 1 { "" } else { "s" };
let text = format!("{} ({} day{} left)", text, i, plural); let text = format!("{} ({} day{} left)", text, d, plural);
self.line_entry(Some(*i), Times::Untimed, text); self.line_entry(Some(*i), Times::Untimed, text);
} }
DayEntry::Undated(i) => { DayEntry::Undated(i) => {