This commit is contained in:
Kovid Goyal 2023-11-18 07:49:57 +05:30
parent 5785023722
commit a326b9fe0f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)