[plugin] Exporter getTitle Fix fix (#9255)

replaced getTitle with newer parseTitleFromPath

Fixes #9253
reviewable/pr9263/r1
Utsob Roy 2 years ago committed by GitHub
parent 41e78b6ed3
commit 6e647a6f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,7 +55,7 @@ function MyClipping:parseMyClippings()
for line in file:lines() do
line = line:match("^%s*(.-)%s*$") or ""
if index == 1 then
title, author = self:getTitle(line)
title, author = self:parseTitleFromPath(line)
clippings[title] = clippings[title] or {
title = title,
author = author,
@ -307,7 +307,7 @@ function MyClipping:parseHistoryFile(clippings, history_file, doc_file)
return
end
local _, docname = util.splitFilePathName(doc_file)
local title, author = self:getTitle(util.splitFileNameSuffix(docname), doc_file)
local title, author = self:parseTitleFromPath(util.splitFileNameSuffix(docname), doc_file)
clippings[title] = {
file = doc_file,
title = title,

Loading…
Cancel
Save