fix: import error if x520 field contains newline
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user