diff --git a/src/calibre/devices/kindle/driver.py b/src/calibre/devices/kindle/driver.py index 24f6220e47..f7e88f4ba5 100644 --- a/src/calibre/devices/kindle/driver.py +++ b/src/calibre/devices/kindle/driver.py @@ -258,7 +258,7 @@ class KINDLE(USBMS): typ=user_notes[location]['type'])) for annotation in annotations: - annot = BeautifulSoup('' + annotations + '').find('span') + annot = BeautifulSoup('' + annotation + '').find('span') divTag.insert(dtc, annot) dtc += 1 diff --git a/src/calibre/devices/kobo/driver.py b/src/calibre/devices/kobo/driver.py index f31322919d..70af802a59 100644 --- a/src/calibre/devices/kobo/driver.py +++ b/src/calibre/devices/kobo/driver.py @@ -1292,7 +1292,7 @@ class KOBO(USBMS): annotation=user_notes[location]['annotation'])) for annotation in annotations: - annot = BeautifulSoup('' + annotations + '').find('span') + annot = BeautifulSoup('' + annotation + '').find('span') divTag.insert(dtc, annot) dtc += 1