From f35bf24a5eb1ba942c4d9f53f16f5e769ca488cc Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 7 Sep 2024 20:30:22 +0800 Subject: [PATCH] Add space before
to prevent it from being recognized as part of a link #113 --- Whatsapp_Chat_Exporter/android_handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Whatsapp_Chat_Exporter/android_handler.py b/Whatsapp_Chat_Exporter/android_handler.py index c2f9bc6..d8473ab 100644 --- a/Whatsapp_Chat_Exporter/android_handler.py +++ b/Whatsapp_Chat_Exporter/android_handler.py @@ -449,9 +449,9 @@ def messages(db, data, media_folder, timezone_offset, filter_date, filter_chat): msg = content["data"] if msg is not None: if "\r\n" in msg: - msg = msg.replace("\r\n", "
") + msg = msg.replace("\r\n", "
") if "\n" in msg: - msg = msg.replace("\n", "
") + msg = msg.replace("\n", "
") else: if content["status"] == 0 and content["edit_version"] == 7 or table_message and content["media_wa_type"] == 15: msg = "Message deleted" @@ -464,9 +464,9 @@ def messages(db, data, media_folder, timezone_offset, filter_date, filter_chat): msg = content["data"] if msg is not None: if "\r\n" in msg: - msg = msg.replace("\r\n", "
") + msg = msg.replace("\r\n", "
") if "\n" in msg: - msg = msg.replace("\n", "
") + msg = msg.replace("\n", "
") message.data = msg data[content["key_remote_jid"]].add_message(content["_id"], message)