From c24b384af1b2126c34bfb5a3c87d00e065648f9c Mon Sep 17 00:00:00 2001 From: Mimi Momo Date: Thu, 1 Oct 2020 14:44:33 -0500 Subject: [PATCH] date in snippet is cleaned of linebreaks --- src/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.py b/src/index.py index cf1158d..a14b2cf 100644 --- a/src/index.py +++ b/src/index.py @@ -38,7 +38,7 @@ def list_snippets(articles): if content.count(''): content += '' a.append(content) - a.append(text[head + 1]) + a.append(text[head + 1].replace('
','')) a.append("social") a.append(path) result.append(a) @@ -71,7 +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? + # cut off after 5 lines, too? return result + " ... " def sort_files(files):