txlyre 2 năm trước cách đây
mục cha
commit
505c6660ba
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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