chiark / gitweb /
Fix test failure introduced by format_date.
authorSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 15:57:11 +0000 (15:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 15:57:11 +0000 (15:57 +0000)
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.

src/text.rs

index 512c3e3d25be6b0c6e66cdb1bf734ef5f3228e93..fc1277198047f0c1d133a463425be64e8f7065fc 100644 (file)
@@ -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);