BigW Consortium Gitlab

Commit b3d30700 by Forest Godfrey

Strip newlines

parent fd21b06c
......@@ -12,7 +12,7 @@ def strip_commas(text):
return re.sub(",", "", text)
def remove_non_ascii(text):
return ''.join([i if ord(i) < 128 else ' ' for i in text])
return ''.join([i if (ord(i) < 128 and ord(i) > 31) else ' ' for i in text])
def process_post(post):
urlstring = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment