txlyre hace 2 años
padre
commit
505c6660ba
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      makeshot.py

+ 3 - 1
makeshot.py

@@ -27,7 +27,9 @@ text = data['text']
 username = demojize(username)
 text = demojize(text)
 
-username = shorten(username, width=15)
+if len(username) > 15:
+  username = username[:15] + '...'
+
 text = fill(text, width=40, replace_whitespace=False)
 
 hpadding = 18