scripts for my gemini capsule
Diffstat (limited to 'lsv.py')
-rwxr-xr-xlsv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsv.py b/lsv.py
index 64857ab..98d1207 100755
--- a/lsv.py
+++ b/lsv.py
@@ -5,12 +5,12 @@ import os
import sys
def printf(line):
- if line:
+ if line.strip():
notref = ' '.join(line.split(' ')[2:]).strip()
notref = notref.replace('||', "\n")
print(notref, end=' ')
else:
- print('')
+ print()
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)