From a326b9fe0f86162429c6f62ddaa65fa1b064f71c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Nov 2023 07:49:57 +0530 Subject: [PATCH] ... --- src/calibre/db/notes/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/notes/connect.py b/src/calibre/db/notes/connect.py index db170a644d..6d984f9835 100644 --- a/src/calibre/db/notes/connect.py +++ b/src/calibre/db/notes/connect.py @@ -504,7 +504,7 @@ class Notes: doc, searchable_text, res, old_item_val = (str(x, 'utf-8') for x in parts) else: doc, searchable_text, res = (str(x, 'utf-8') for x in parts) - old_item_val = searchable_text.split('\n')[0] + old_item_val = searchable_text.split('\n', 1)[0] except Exception as err: errors.append(_('Failed to parse document for: {0} with error: {1}').format(old_item_id, err)) report_progress('', i)