From c6352c5f7592961b1d3151d156545000d169d5c8 Mon Sep 17 00:00:00 2001 From: Linus E <75929322+Rripped@users.noreply.github.com> Date: Tue, 10 May 2022 19:19:40 +0200 Subject: [PATCH] small comment --- telegram_bot/helper_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram_bot/helper_functions.py b/telegram_bot/helper_functions.py index a7bfc63..32cf53c 100644 --- a/telegram_bot/helper_functions.py +++ b/telegram_bot/helper_functions.py @@ -33,8 +33,8 @@ def make_markdown_proof(text): # used to avoid errors related to markdown parsem :rtype: string """ text = str(text) - - text = text.replace("_", "\\_") + + text = text.replace("_", "\\_") # replace _ with \_ because \ is used as escape character in markdown, double escape is needed because \ is also a escape character in strings text = text.replace("*", "\\*") text = text.replace("`", "\\`") text = text.replace("[", "\\[")