aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2022-03-11 10:19:15 +0100
committerMS <ms@taler.net>2022-03-11 10:19:15 +0100
commit218f02cfc0453a0d4cc067ba9256123a675040ce (patch)
treebd3742a3145d6462d3988c1bd8614f8c2f4f9e48
parent2b72c7f57d318271856f992eb2e58c133ae5179e (diff)
downloadwww_shared-218f02cfc0453a0d4cc067ba9256123a675040ce.tar.gz
www_shared-218f02cfc0453a0d4cc067ba9256123a675040ce.zip
abstract extraction: fix whitespacing
-rw-r--r--sitegen/site.py2
1 files changed, 1 insertions, 1 deletions
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):
60 for i in soup.findAll("p")[1]: 60 for i in soup.findAll("p")[1]:
61 k.append(i) 61 k.append(i)
62 b = "".join(str(e) for e in k) 62 b = "".join(str(e) for e in k)
63 text = html2text(b.replace("\n", "")) 63 text = html2text(b.replace("\n", " "))
64 textreduced = (text[:count] + " [...]") if len(text) > count else (text) 64 textreduced = (text[:count] + " [...]") if len(text) > count else (text)
65 return textreduced 65 return textreduced
66 66