From 0cda38bb3daa5df4db3b0f4ccd1fadd0dee06870 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 8 Aug 2024 00:41:58 +0200 Subject: [PATCH] Use `writeln!` instead of `write!` to write a new line --- src/services/telegram/commands/diario.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/telegram/commands/diario.rs b/src/services/telegram/commands/diario.rs index 369edf96..53494f67 100644 --- a/src/services/telegram/commands/diario.rs +++ b/src/services/telegram/commands/diario.rs @@ -62,7 +62,7 @@ impl TelegramWrite for DiarioEntry { } // Newline - write!(f, "\n")?; + writeln!(f)?; // Quote optionally covered by a spoiler tag match self.warning.to_owned() { @@ -71,7 +71,7 @@ impl TelegramWrite for DiarioEntry { } // Newline - write!(f, "\n")?; + writeln!(f)?; // Optional citation with optional context match (self.quoted_name.to_owned(), self.context.to_owned()) {