Skip to content

Commit

Permalink
Merge pull request #68 from albarin/add-name-type-in-name-writer
Browse files Browse the repository at this point in the history
Add type to name writer
  • Loading branch information
curtisdelicata authored Feb 11, 2025
2 parents 89df47a + ef83d12 commit 2c9d852
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Writer/Indi/Name.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public static function convert(\Gedcom\Record\Indi\Name &$name, $level = 0)
}
}

// TYPE
$type = $name->getType();
if (!empty($type)) {
$output .= $level . ' TYPE ' . $type . "\n";
}

return $output;
}
}

0 comments on commit 2c9d852

Please sign in to comment.