Can Python fix vcard files?
skip at pobox.com
skip at pobox.com
Wed Oct 15 09:12:35 EDT 2008
Dotan> The regex seems to be catching more than I would expect it to:
...
Worked for me. The directory I ran the script in had your sample and one
other VCF file. It made the apparently correct changes to yours. The other
was unchanged.
Dotan> Why is that? I tried to fix it, but I do not even see what is
Dotan> wrong to fix! It looks god to me.
Just out of curiosity, are the line endings CRLF perchance? If so, try
changing the replace call like this:
cooked = uncooked.replace('\r\n ', '')
Skip
More information about the Python-list
mailing list