diff options
author | emkael <emkael@tlen.pl> | 2018-08-09 10:26:51 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-08-09 10:26:51 +0200 |
commit | 9a42b9f29d4b51f6e777cea0dc2bd750d102fa13 (patch) | |
tree | 7258270b7610c6b0f9c16a7feaf743c52262eaea | |
parent | e313785a8cbf1b5c201fd8dab8087f701f295825 (diff) |
Shortening long (multiple) team labels
-rw-r--r-- | jfr_playoff/generator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index 59c83a6..66e9a01 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -57,6 +57,7 @@ class PlayoffGenerator(object): team_label = ' / '.join([ self.data.get_shortname(name) for name in team.name.split('<br />')]) + team_label = team_label[:30] + (team_label[30:] and '(...)') team_html = self.p_temp.get( 'MATCH_TEAM_LINK', match.link, team.name, team_label) \ |