Consistent newlines for metadata, closes #890