From ff89e15dd200fbd054c8d4f5cd56b73e0741aa1f Mon Sep 17 00:00:00 2001 From: Mimi Momo Date: Thu, 1 Oct 2020 14:11:03 -0500 Subject: [PATCH] removed headers from snippet content --- src/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.py b/src/index.py index 376b64c..cf1158d 100644 --- a/src/index.py +++ b/src/index.py @@ -62,6 +62,8 @@ def clean(result, path): result = result.replace('
','') result = re.sub(r'', '', result) result = result.replace('','') + result = re.sub(r'','',result) + result = re.sub(r'','',result) return result def snip_article(article, path): @@ -69,6 +71,7 @@ def snip_article(article, path): limit = 300 result = article[0:min(len(article),limit)] result = result.rsplit(' ',1)[0] + # cut off at certain line count, too? return result + " ... " def sort_files(files):