Spaces:
Sleeping
Sleeping
Commit
·
0f8caf6
1
Parent(s):
9e6e5b9
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ xlrd .xlsx .Element_has_iter =True #line:26
|
|
25 |
def remove_non_printable(value):
|
26 |
if isinstance(value, str):
|
27 |
#return re.sub(r'[^\x20-\x7E\n\t\xa0]|(?<=\w)\n|(?<=\w)\t', '', value)
|
28 |
-
return re.sub(r'[\x00-\x1F\x7F-\x9F\xa0\n\t\s]+|(?<=\w)\\n|(?<=\w)\\xa0(?<=\w)\\n|(?<=\w)\\t', ' ', value)
|
|
|
29 |
return value
|
30 |
|
31 |
async def faq ():#line:28
|
|
|
25 |
def remove_non_printable(value):
|
26 |
if isinstance(value, str):
|
27 |
#return re.sub(r'[^\x20-\x7E\n\t\xa0]|(?<=\w)\n|(?<=\w)\t', '', value)
|
28 |
+
#return re.sub(r'[\x00-\x1F\x7F-\x9F\xa0\n\t\s]+|(?<=\w)\\n|(?<=\w)\\xa0(?<=\w)\\n|(?<=\w)\\t', ' ', value)
|
29 |
+
value = re.sub(r'[\xa0\n\t]', ' ', value)
|
30 |
return value
|
31 |
|
32 |
async def faq ():#line:28
|