From af1034e11fe9f299f6df95aee1a2ebacff5c4fe7 Mon Sep 17 00:00:00 2001 From: p82o <64755699+p82o@users.noreply.github.com> Date: Fri, 4 Jun 2021 18:46:17 +0300 Subject: [PATCH] Update text_decorations.py --- aiogram/utils/text_decorations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/text_decorations.py b/aiogram/utils/text_decorations.py index 09484e3c..40fe296b 100644 --- a/aiogram/utils/text_decorations.py +++ b/aiogram/utils/text_decorations.py @@ -185,7 +185,7 @@ class MarkdownDecoration(TextDecoration): return f"`{value}`" def pre(self, value: str) -> str: - return f"```{value}```" + return f"```\n{value}\n```" def pre_language(self, value: str, language: str) -> str: return f"```{language}\n{value}\n```"