From 87b1fcc038ac26ad1e6f4f52087d0f24ff03fe65 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:10:18 +0800 Subject: [PATCH] Show caption even if the the message is a metadata #111 --- Whatsapp_Chat_Exporter/whatsapp.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Whatsapp_Chat_Exporter/whatsapp.html b/Whatsapp_Chat_Exporter/whatsapp.html index 17604cd..6f29232 100644 --- a/Whatsapp_Chat_Exporter/whatsapp.html +++ b/Whatsapp_Chat_Exporter/whatsapp.html @@ -138,6 +138,11 @@

{{ msg.data or 'Not supported WhatsApp internal message' }}

{% endif %} + {% if msg.caption is not none %} +
+ {{ msg.caption | urlize(none, true, '_blank') }} +
+ {% endif %} {% else %} {% if msg.media == false %} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }} @@ -222,6 +227,11 @@

{{ msg.data or 'Not supported WhatsApp internal message' }}

{% endif %} + {% if msg.caption is not none %} +
+ {{ msg.caption | urlize(none, true, '_blank') }} +
+ {% endif %} {% else %} {% if msg.media == false %} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }}