Keep new lines
#5
by
do-me
- opened
update.py
CHANGED
@@ -59,7 +59,7 @@ def clean_text(func):
|
|
59 |
|
60 |
def inner(*args, **kwargs):
|
61 |
text = func(*args, **kwargs)
|
62 |
-
text = text.replace("\n", " ")
|
63 |
text = text.replace(" .", ".")
|
64 |
text = re.sub(' +', ' ', text)
|
65 |
text = re.sub(' *[.] *', '. ', text)
|
|
|
59 |
|
60 |
def inner(*args, **kwargs):
|
61 |
text = func(*args, **kwargs)
|
62 |
+
# text = text.replace("\n", " ")
|
63 |
text = text.replace(" .", ".")
|
64 |
text = re.sub(' +', ' ', text)
|
65 |
text = re.sub(' *[.] *', '. ', text)
|