diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js index bf9d5e6f17..3361829881 100644 --- a/chrome/content/zotero/import/mendeley/mendeleyImport.js +++ b/chrome/content/zotero/import/mendeley/mendeleyImport.js @@ -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); diff --git a/pdf-worker b/pdf-worker index 7392a40d50..7f66c552c6 160000 --- a/pdf-worker +++ b/pdf-worker @@ -1 +1 @@ -Subproject commit 7392a40d50221da8b99bb72f43cd9e22c3297eac +Subproject commit 7f66c552c65bdf0b8499ccbd011d8dbf2cf2e4b1