[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www_shared] branch master updated: abstract extraction: fix whitespacin
From: |
gnunet |
Subject: |
[www_shared] branch master updated: abstract extraction: fix whitespacing |
Date: |
Fri, 11 Mar 2022 10:21:28 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello-stanisci pushed a commit to branch master
in repository www_shared.
The following commit(s) were added to refs/heads/master by this push:
new 218f02c abstract extraction: fix whitespacing
218f02c is described below
commit 218f02cfc0453a0d4cc067ba9256123a675040ce
Author: MS <ms@taler.net>
AuthorDate: Fri Mar 11 10:19:15 2022 +0100
abstract extraction: fix whitespacing
---
sitegen/site.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sitegen/site.py b/sitegen/site.py
index 2148763..e2b20c0 100644
--- a/sitegen/site.py
+++ b/sitegen/site.py
@@ -60,7 +60,7 @@ def cut_text(filename, count):
for i in soup.findAll("p")[1]:
k.append(i)
b = "".join(str(e) for e in k)
- text = html2text(b.replace("\n", ""))
+ text = html2text(b.replace("\n", " "))
textreduced = (text[:count] + " [...]") if len(text) > count else
(text)
return textreduced
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [www_shared] branch master updated: abstract extraction: fix whitespacing,
gnunet <=