From ba2857cfc16760b9c9c7a8f4ad970feef28eb5d2 Mon Sep 17 00:00:00 2001 From: Kevin de Moura <212992629+k-leveller@users.noreply.github.com> Date: Fri, 23 May 2025 05:06:02 +0000 Subject: [PATCH] NewsDownloader: update formatting of byline to be language-neutral and with a space following --- plugins/newsdownloader.koplugin/main.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/newsdownloader.koplugin/main.lua b/plugins/newsdownloader.koplugin/main.lua index f643957de..e8a981a9c 100644 --- a/plugins/newsdownloader.koplugin/main.lua +++ b/plugins/newsdownloader.koplugin/main.lua @@ -88,7 +88,7 @@ end -- and return a byline or empty string local function getByline(feed) if type(feed["dc:creator"]) == "string" then - return "By " .. feed["dc:creator"] + return feed["dc:creator"] end if type(feed["dc:creator"]) == "table" then local i = 0 @@ -101,12 +101,12 @@ local function getByline(feed) authors[i] = feed["dc:creator"][i] end if #authors > 0 then - return "By " .. table.concat(authors, ", ") + return table.concat(authors, ", ") end end if feed.author then if type(feed.author.name) == "string" then -- single author - return "By " .. feed.author.name + return feed.author.name end if type(feed.author) == "table" then local i = 0 @@ -119,7 +119,7 @@ local function getByline(feed) authors[i] = feed.author[i].name end if #authors > 0 then - return "By " .. table.concat(authors, ", ") + return table.concat(authors, ", ") end end end @@ -755,6 +755,7 @@ function NewsDownloader:createFromDescription(feed, title, content, feed_output_