Export highlights: empty annotations as nil instead of empty string (#11912)

Fixes Readwise exports
This commit is contained in:
Piotrek Marciniak
2024-05-27 19:18:11 +02:00
committed by GitHub
parent 1aefd80ea6
commit 9b1a21ef82

View File

@@ -243,7 +243,7 @@ function MyClipping:parseAnnotations(annotations, book)
page = item.pageno,
time = self:getTime(item.datetime),
text = self:getText(item.text),
note = self:getText(item.note),
note = item.note and self:getText(item.note),
chapter = item.chapter,
drawer = item.drawer,
}