From 2c1f5356f659d2a451f274e0be64360ed5308dcc Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 10 Feb 2021 07:41:28 -0500 Subject: zachwalk: use input as a template --- zachwalk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zachwalk.py') diff --git a/zachwalk.py b/zachwalk.py index aee0458..f2ecee1 100755 --- a/zachwalk.py +++ b/zachwalk.py @@ -49,9 +49,11 @@ def main(): desc = getdesc(line) newestdate = getnewestdate(url) print(f'=> {url} {newestdate} - {desc}') + else: + print(line.rstrip()) def getdesc(line): - return ' '.join(line.split(' ')[2:]) + return ' '.join(line.split(' ')[2:]).strip() if __name__ == '__main__': main() -- cgit 1.4.1