Generalize elide_subject in case the max topic length changes.

(imported from commit 6ffdd42d39580149a83869d6aff88bad8940fe02)
This commit is contained in:
Jessica McKellar 2013-11-22 10:40:34 -05:00
parent 5b01dadfd3
commit ebe3acf408

View File

@ -198,7 +198,7 @@ def build_message_from_gitlog(user_profile, name, ref, commits, before, after, u
def elide_subject(subject):
if len(subject) > MAX_SUBJECT_LENGTH:
subject = subject[:57].rstrip() + '...'
subject = subject[:MAX_SUBJECT_LENGTH - 3].rstrip() + '...'
return subject
def guess_zulip_user_from_jira(jira_username, realm):