Mendeley import: Ignore empty text highlights

This commit is contained in:
Dan Stillman 2021-03-08 10:57:46 -05:00
parent e4d7089506
commit 824f67cb36
2 changed files with 6 additions and 1 deletions

View file

@ -1187,6 +1187,11 @@ Zotero_Import_Mendeley.prototype._saveAnnotations = async function (annotations,
annotations = await Zotero.PDFWorker.processMendeleyAnnotations(file, annotations);
for (let annotation of annotations) {
// Ignore empty highlights
if (annotation.type == 'highlight' && !annotation.text) {
continue;
}
let o = annotationMap.get(annotation.id);
Object.assign(o, annotation);

@ -1 +1 @@
Subproject commit 7392a40d50221da8b99bb72f43cd9e22c3297eac
Subproject commit 7f66c552c65bdf0b8499ccbd011d8dbf2cf2e4b1