aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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