Narretz / php-gedcom

PHP library for parsing gedcom genealogy files into objects
Other
3 stars 8 forks source link

New lines in Even cause parsing errors #2

Open FattusMannus opened 11 years ago

FattusMannus commented 11 years ago

1 EVEN Bedfordshire Regiment 4259 WO97 / 2909 / 98 2 TYPE Military Service 2 DATE 3 NOV 1892

Where an EVEN has newlines in it (As exported from MyHeritage.com), this causes a parsing error:

Class '\Gedcom\Record\Indi\' not found in C:\wamp\www\gedcom\Parser\Indi\Even.php on line 39

Removing the new lines removes the issue

Narretz commented 11 years ago

Thanks; I will check this first thing next year.