From c726d4cbc854dda552b8f8277160e16d7dd84a09 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 8 Aug 2024 00:44:25 +0200 Subject: [PATCH] Fix `TelegramWrite` of `DiarioEntry` with warnings --- src/services/telegram/commands/diario.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/telegram/commands/diario.rs b/src/services/telegram/commands/diario.rs index 53494f67..b30c4f7d 100644 --- a/src/services/telegram/commands/diario.rs +++ b/src/services/telegram/commands/diario.rs @@ -67,7 +67,7 @@ impl TelegramWrite for DiarioEntry { // Quote optionally covered by a spoiler tag match self.warning.to_owned() { None => write!(f, "
{}
", self.clone().quote.escape_telegram_html())?, - Some(warning) => write!(f, "
{}
", warning.escape_telegram_html())?, + Some(warning) => write!(f, "
{}
", self.clone().quote.escape_telegram_html())?, } // Newline