ranguard / text-vcard

Perl package to edit and create vCard(s) (RFC 2426)
22 stars 15 forks source link

Strange race condition on vcf file with empty lines after NOTE: #56

Open vijaysar opened 5 years ago

vijaysar commented 5 years ago

This is a very simple VCF file except for some reason it has empty lines after NOTE - perhaps from vCard export of outlook. This freezes with the simple script belo Default_vcf.txt w. Can you please fix this issue?

use Text::vCard::Addressbook; $address_book = Text::vCard::Addressbook->new({'source_file' => "Default.vcf"});

Default.vcf (\r\n not shown) BEGIN:VCARD VERSION:3.0 PRODID:Z-Push FN:Microsoft Cunningham N:Cunningham;Microsoft;;Marcie CIV; EMAIL;PREF=1:marcie.cunningham@microsoft.com TEL;TYPE=HOME,VOICE:(901) 225-8634 NOTE:

UID:C191AD2C-8658-49B0-9929-995B4A62396E X-RADICALE-NAME:C191AD2C-8658-49B0-9929-995B4A62396E.vcf END:VCARD

ranguard commented 5 years ago

Hi,

I'm not actively working on this project - but I'd take a pull request (with test).

Thanks

Leo