aboutsummaryrefslogtreecommitdiff
path: root/template.py
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-10 16:11:35 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-11-10 16:11:35 +0100
commit812fcd2c64b8b48ed67d1f1d9b1be5fdb57680c4 (patch)
treef2bf33a75f6488e15c813f9d6b47efe92e72de82 /template.py
parent75c48fea82f55308c54309ff79170b535e389c1e (diff)
downloadwww-812fcd2c64b8b48ed67d1f1d9b1be5fdb57680c4.tar.gz
www-812fcd2c64b8b48ed67d1f1d9b1be5fdb57680c4.zip
allow up to 1000 chars
Diffstat (limited to 'template.py')
-rwxr-xr-xtemplate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.py b/template.py
index 607608f6..d2dc5a9a 100755
--- a/template.py
+++ b/template.py
@@ -166,7 +166,7 @@ def preview_text(filename):
166 k.append(i) 166 k.append(i)
167 b = ''.join(str(e) for e in k) 167 b = ''.join(str(e) for e in k)
168 text = b.replace("\n", "") 168 text = b.replace("\n", "")
169 textreduced = (text[:800] + '...') if len(text) > 800 else (text + '..') 169 textreduced = (text[:1000] + '...') if len(text) > 1000 else (text + '..')
170 return(textreduced) 170 return(textreduced)
171 171
172 172