fix: import error if x520 field contains newline

This commit is contained in:
relikd
2025-06-09 00:07:59 +02:00
parent 5a2cb5f1e9
commit d151863706
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ def incrItem(value: str, label: str) -> str:
def x520(val: str) -> Optional[str]:
if not val:
return None
return val.replace(';', '\\;').replace(',', '\\,')
return val.replace(';', '\\;').replace(',', '\\,').replace('\n', '\\n')
def buildLabel(

View File

@@ -2,6 +2,6 @@
'''
Convert AddressBook database (.abcddb) to Contacts VCards file (.vcf)
'''
__version__ = '1.1.0'
__version__ = '1.1.1'
from .ABCDDB import ABCDDB