mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-18 12:07:03 +01:00
csv_metadata_quality/fix.py: Fix indent
This commit is contained in:
parent
fa4fa3491b
commit
50ae4e17f2
@ -24,8 +24,8 @@ def whitespace(field):
|
||||
pattern = re.compile(r'\s{2,}')
|
||||
match = re.findall(pattern, value)
|
||||
|
||||
print(f'Excessive whitespace: {value}')
|
||||
if match:
|
||||
print(f'Excessive whitespace: {value}')
|
||||
value = re.sub(pattern, ' ', value)
|
||||
|
||||
# Save cleaned value
|
||||
|
Loading…
Reference in New Issue
Block a user