mrkrstphr / php-gedcom

UNMAINTAINED - A library for reading and writing GEDCOM files in PHP.
MIT License
38 stars 46 forks source link

Problem with CONT and CONC in multiline records #22

Open mikew0143 opened 9 years ago

mikew0143 commented 9 years ago
  1. Data is being lost from the start of a CONT field. The specification says that leading spaces etc should not be trimmed from the start of the content
  2. A space is being inserted between words that are split because of CONC. The specification says that values should only be split at a non-space in the gedcom file therefore the lines should only be connected by \n and/or \l

The code responsible for this appears to be parser.php.

Note: the Torture tests have NOTE structures that are not valid Gedcom . The lines being split at spaces.