mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-04-08 08:02:33 +02: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,}')
|
pattern = re.compile(r'\s{2,}')
|
||||||
match = re.findall(pattern, value)
|
match = re.findall(pattern, value)
|
||||||
|
|
||||||
print(f'Excessive whitespace: {value}')
|
|
||||||
if match:
|
if match:
|
||||||
|
print(f'Excessive whitespace: {value}')
|
||||||
value = re.sub(pattern, ' ', value)
|
value = re.sub(pattern, ' ', value)
|
||||||
|
|
||||||
# Save cleaned value
|
# Save cleaned value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user