From 1f45489cabd6e042408b9650e97e7a226efaf816 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 20 Dec 2021 05:24:08 +0100 Subject: [PATCH] replace newlines with spaces whereas before they were simply discarded --- da_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/da_detector.py b/da_detector.py index a88ecc8..e9abef3 100755 --- a/da_detector.py +++ b/da_detector.py @@ -30,7 +30,7 @@ class da_detector: def rm_newlines(self, data): try: - data = data.replace('\n', '') + data = data.replace('\n', ' ') except Exception as e: raise e return data