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):