Merge pull request #329 from chrox/master

export highlights only if highlighted text is not nil
pull/334/head
{Qingping, Dave} Hou 11 years ago
commit 7a0e7b3382

@ -320,7 +320,7 @@ end
function ReaderHighlight:exportToClippings(page, item)
DEBUG("export highlight to My Clippings")
local clippings = io.open("/mnt/us/documents/My Clippings.txt", "a+")
if clippings then
if clippings and item.text then
local current_locale = os.setlocale()
os.setlocale("C")
clippings:write(self.document.file:gsub("(.*/)(.*)", "%2").."\n")

Loading…
Cancel
Save