about summary refs log tree commit diff
path: root/zachwalk.py
diff options
context:
space:
mode:
Diffstat (limited to 'zachwalk.py')
-rwxr-xr-xzachwalk.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/zachwalk.py b/zachwalk.py
index b65df8c..145c174 100755
--- a/zachwalk.py
+++ b/zachwalk.py
@@ -60,6 +60,7 @@ def replaceDateIfNewer(desc, newestdate):
 def main():
     for line in fileinput.input(): #stdin or file from argv
         if line[0:2] == '=>':
+          # don't use tabs
           url = line[2:].strip().split(' ')[0]
           if isAbsGeminiUrl(url):
             desc = getdesc(line)
@@ -74,7 +75,7 @@ def isAbsGeminiUrl(url):
     return url[0:9] == 'gemini://'
 
 def getdesc(line):
-  return ' '.join(line[2:].strip().split(' ')[1:])
+  return ' '.join(line[2:].strip().replace('	',' ').split(' ')[1:]).lstrip()
 
 if __name__ == '__main__':
   main()