mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Exporter: memos, replace space with underscore for # tag creation (#11107)
Creating tags on memos looked like "#This is a book title" meaning only "#This" would become a Tag. Replacing spaces with underscore to be more usable so that the following tag would be created "#This_is_a_book_title"
This commit is contained in:
@@ -135,7 +135,7 @@ function MemosExporter:createHighlights(booknotes)
|
||||
if clipping.note then
|
||||
highlight = highlight .. clipping.note .. "\n\n"
|
||||
end
|
||||
highlight = highlight .. booknotes.title .. " (page: " .. clipping.page .. ")\n\n #" .. booknotes.title .. " #koreader"
|
||||
highlight = highlight .. booknotes.title .. " (page: " .. clipping.page .. ")\n\n #" .. booknotes.title:gsub("%s+", "_") .. " #koreader"
|
||||
local result, err = makeRequest("POST", { content = highlight }, self.settings.api, self.settings.token)
|
||||
if not result then
|
||||
logger.warn("error creating highlights", err)
|
||||
|
||||
Reference in New Issue
Block a user