Update preprocess.py
Browse files- preprocess.py +1 -1
preprocess.py
CHANGED
@@ -13,7 +13,7 @@ def sanitize_filename(filename):
|
|
13 |
"""Remove or replace any characters that are not allowed in file names."""
|
14 |
return ''.join(c for c in filename if c.isalnum() or c in (' ', '_', '-')).rstrip()
|
15 |
|
16 |
-
#
|
17 |
def punctuate_p(str_ext):
|
18 |
|
19 |
# substitute ' ·\n' by ...
|
|
|
13 |
"""Remove or replace any characters that are not allowed in file names."""
|
14 |
return ''.join(c for c in filename if c.isalnum() or c in (' ', '_', '-')).rstrip()
|
15 |
|
16 |
+
# function to add original punctuation to cotovía numbers extension (option p)
|
17 |
def punctuate_p(str_ext):
|
18 |
|
19 |
# substitute ' ·\n' by ...
|