only strip newlines

This commit is contained in:
ktyl 2022-10-04 22:00:10 +01:00
parent b615241f8c
commit 45fc27f1a8
1 changed files with 1 additions and 1 deletions

2
ppp.py
View File

@ -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: