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]:
|
def x520(val: str) -> Optional[str]:
|
||||||
if not val:
|
if not val:
|
||||||
return None
|
return None
|
||||||
return val.replace(';', '\\;').replace(',', '\\,')
|
return val.replace(';', '\\;').replace(',', '\\,').replace('\n', '\\n')
|
||||||
|
|
||||||
|
|
||||||
def buildLabel(
|
def buildLabel(
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
'''
|
'''
|
||||||
Convert AddressBook database (.abcddb) to Contacts VCards file (.vcf)
|
Convert AddressBook database (.abcddb) to Contacts VCards file (.vcf)
|
||||||
'''
|
'''
|
||||||
__version__ = '1.1.0'
|
__version__ = '1.1.1'
|
||||||
|
|
||||||
from .ABCDDB import ABCDDB
|
from .ABCDDB import ABCDDB
|
||||||
|
|||||||
Reference in New Issue
Block a user