Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Truncate issue titles #76

Merged
merged 5 commits into from Jun 12, 2015
Merged

Truncate issue titles #76

merged 5 commits into from Jun 12, 2015

Conversation

mnquintana
Copy link
Contributor

Closes #56
Closes #46

This just cleans up the code a bit from #56. (Thanks @jportela!)

mnquintana added a commit that referenced this pull request Jun 12, 2015
@mnquintana mnquintana merged commit 120cf2e into master Jun 12, 2015
@mnquintana mnquintana deleted the mq-jportela-truncate-title branch June 12, 2015 01:41
@notification.getMessage()
title = @notification.getMessage()
if title.length > TITLE_CHAR_LIMIT
title = title.substring(0, TITLE_CHAR_LIMIT - 3) + '...'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up, but you can use \u2026 to make a 1 character length ellipsis since the ... might look weird spacing-wise in certain fonts.

http://www.fileformat.info/info/unicode/char/2026/index.htm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants