mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-05-08 06:06:00 +02:00
csv_metadata_quality/fix.py: Fix indent
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user