From: Simon Tatham Date: Mon, 1 Jan 2024 15:57:11 +0000 (+0000) Subject: Fix test failure introduced by format_date. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=7cefe1dfa8736865d9be2e3f177340bcf0d696e9;p=mastodonochrome.git Fix test failure introduced by format_date. I didn't read carefully enough the code I was replacing with a function call. It had an extra space at the end of the date format string. --- diff --git a/src/text.rs b/src/text.rs index 512c3e3..fc12771 100644 --- a/src/text.rs +++ b/src/text.rs @@ -834,6 +834,7 @@ impl TextFragment for NotificationLog { let mut full_para = Paragraph::new().set_indent(0, 2); let datestr = format_date(self.timestamp); full_para.push_text(&ColouredString::uniform(&datestr, ' '), false); + full_para.end_word(); // FIXME: highlight account_desc if active full_para.push_text( &ColouredString::uniform(&self.account_desc, ' '), false);