about summary refs log tree commit diff
path: root/zachwalk.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-10 07:41:28 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-10 07:41:28 -0500
commit2c1f5356f659d2a451f274e0be64360ed5308dcc (patch)
tree3364727be181cb016e227fa48acc6988ed1a79a1 /zachwalk.py
parentd40a78ef73c793cc1d23118a6a1c6a478d930dfd (diff)
downloadzachwalk-2c1f5356f659d2a451f274e0be64360ed5308dcc.tar.gz
zachwalk: use input as a template
Diffstat (limited to 'zachwalk.py')
-rwxr-xr-xzachwalk.py4
1 files changed, 3 insertions, 1 deletions
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()