From 45fc27f1a837dfb2536e8a7c50537fc6a8b4cfa4 Mon Sep 17 00:00:00 2001 From: ktyl Date: Tue, 4 Oct 2022 22:00:10 +0100 Subject: [PATCH] only strip newlines --- ppp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppp.py b/ppp.py index 9c3e3f0..64eef65 100644 --- a/ppp.py +++ b/ppp.py @@ -28,7 +28,7 @@ def preprocess_file(path): with open(path) as f: content = f.readlines() - content = [x.strip() for x in content] + content = [x.strip('\n') for x in content] lines=len(content) for l in content: