diff --git a/yml2block/rules.py b/yml2block/rules.py index 1bc0836..6d53f15 100644 --- a/yml2block/rules.py +++ b/yml2block/rules.py @@ -244,7 +244,15 @@ def no_trailing_white_spaces(list_item, tsv_keyword): """ entries_to_check = { "metadataBlock": ("name", "dataverseAlias"), - "datasetField": ("name", "title", "description", "watermark", "fieldType", "parent", "metadatablock_id"), + "datasetField": ( + "name", + "title", + "description", + "watermark", + "fieldType", + "parent", + "metadatablock_id", + ), "controlledVocabulary": ("Value", "identifier"), } diff --git a/yml2block/tsv_input.py b/yml2block/tsv_input.py index 026a04b..5ef155c 100644 --- a/yml2block/tsv_input.py +++ b/yml2block/tsv_input.py @@ -77,7 +77,7 @@ def _parse(block): # For consistency with the yaml format toplevel_key = toplevel_key_with_prefix.lstrip("#") row_as_dict = dict() - + for key, value in row.items(): if key is None: # These entries cannot be associated with a column header