gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[www_shared] branch master updated: shorten dots


From: gnunet
Subject: [www_shared] branch master updated: shorten dots
Date: Fri, 19 Jun 2020 15:28:03 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository www_shared.

The following commit(s) were added to refs/heads/master by this push:
     new 25f53ba  shorten dots
25f53ba is described below

commit 25f53bac505295613b0cbb43e300f5c7bee79d55
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Fri Jun 19 15:22:24 2020 +0200

    shorten dots
---
 textproc.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/textproc.py b/textproc.py
index 9a89b76..30370ac 100644
--- a/textproc.py
+++ b/textproc.py
@@ -48,8 +48,7 @@ def cut_text(filename, count):
             k.append(i)
         b = ''.join(str(e) for e in k)
         text = html2text(b.replace("\n", ""))
-        textreduced = (text[:count] + '...') if len(text) > count else (text +
-                                                                        '..')
+        textreduced = (text[:count] + ' [...]') if len(text) > count else 
(text)
         return (textreduced)
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]