We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ad7846 commit f4ea601Copy full SHA for f4ea601
1 file changed
src/classes/notification.py
@@ -41,9 +41,10 @@ def render_subject(self):
41
if self.submission.title is not None:
42
bldr.append(": ")
43
44
+
45
characters_available = 85 - utils.bldr_length(bldr)
46
if len(self.submission.title.encode('utf-8')) > characters_available:
- bldr.append(self.submission.title[:characters_available-3])
47
+ bldr.append(self.submission.title.encode('utf-8')[:characters_available-3].decode('utf-8', 'ignore'))
48
bldr.append("...")
49
else:
50
bldr.append(self.submission.title)
0 commit comments