From 10f627e3f9b8fa9f1e288829d2f86d6aba2ea4eb Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Thu, 2 Jan 2025 12:42:10 +0100 Subject: [PATCH] [plugin] NewsDownloader: reduce HTML idiosyncracies (#12976) --- plugins/newsdownloader.koplugin/main.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/newsdownloader.koplugin/main.lua b/plugins/newsdownloader.koplugin/main.lua index d5d42c353..e70706392 100644 --- a/plugins/newsdownloader.koplugin/main.lua +++ b/plugins/newsdownloader.koplugin/main.lua @@ -614,11 +614,18 @@ function NewsDownloader:createFromDescription(feed, title, content, feed_output_ logger.dbg("NewsDownloader: News file will be stored to :", news_file_path) local article_message = T(_("%1\n%2"), message, title_with_date) local footer = _("If this is only a summary, the full article can be downloaded by going to the News Downloader settings and changing 'Download full article' to 'true'.") - local html = string.format([[ + local html = string.format([[ + -%s -

%s

%s
-
+ + +%s + + +

%s

+
%s
+
+ ]], title, title, content, footer) local link = getFeedLink(feed.link)