From ca660f3b555ed6b7f9da48bd6e80daef0e60a386 Mon Sep 17 00:00:00 2001 From: Nikola Kotur Date: Mon, 6 Jan 2025 19:40:35 +0100 Subject: [PATCH] [exporter] support multiple authors in Nextcloud (#13005) Fixes #12821. --- plugins/exporter.koplugin/target/nextcloud.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exporter.koplugin/target/nextcloud.lua b/plugins/exporter.koplugin/target/nextcloud.lua index bf320411d..9e9c4a221 100644 --- a/plugins/exporter.koplugin/target/nextcloud.lua +++ b/plugins/exporter.koplugin/target/nextcloud.lua @@ -182,7 +182,7 @@ function NextcloudExporter:export(t) -- export each note for _, booknotes in pairs(t) do local note = md.prepareBookContent(booknotes, markdown_settings.formatting_options, markdown_settings.highlight_formatting) - local note_title = string.format("%s - %s", booknotes.author, booknotes.title) + local note_title = string.format("%s - %s", string.gsub(booknotes.author, "\n", ", "), booknotes.title) -- search for existing note, and in that case use its ID for update note_id = nil