[exporter] support multiple authors in Nextcloud (#13005)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run

Fixes #12821.
This commit is contained in:
Nikola Kotur
2025-01-06 19:40:35 +01:00
committed by GitHub
parent f0a3e1c63a
commit ca660f3b55

View File

@@ -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