Commit 955b176b authored by Pierre Dittgen's avatar Pierre Dittgen

Add empty-header error for all empty columns (including trailing columns)

parent a150c7ab
......@@ -225,7 +225,7 @@ def repair_core(dataset: tablib.Dataset, schema_field_names):
if last_nonempty_header_col != -1:
report.extend([goodtables.Error(code='blank-header',
message_substitutions={'column-number': col_id + 1})
for col_id in empty_header_cols if col_id < last_nonempty_header_col])
for col_id in empty_header_cols])
# Compare ordering
schema_order_extract = [h for h in schema_field_names if h in content_dataset.headers]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment