diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-10 07:41:28 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-10 07:41:28 -0500 |
| commit | 2c1f5356f659d2a451f274e0be64360ed5308dcc (patch) | |
| tree | 3364727be181cb016e227fa48acc6988ed1a79a1 /zachwalk.py | |
| parent | d40a78ef73c793cc1d23118a6a1c6a478d930dfd (diff) | |
| download | zachwalk-2c1f5356f659d2a451f274e0be64360ed5308dcc.tar.gz | |
zachwalk: use input as a template
Diffstat (limited to 'zachwalk.py')
| -rwxr-xr-x | zachwalk.py | 4 |
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() |
