diff options
author | Stan Hu <stanhu@gmail.com> | 2018-12-04 20:59:48 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-12-07 08:51:51 +0300 |
commit | 7d18c4d23637f52fa0fdc3028223f8cd1ec1e072 (patch) | |
tree | bf2f30462951a22ec3d2c13f24347ea1e597822b /app/models | |
parent | acc785f56e9c88b490fc2c5cef59df9c13617edf (diff) |
Truncate merge request titles with periods instead of ellipsis
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54862
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 2c89da88b9b..a422a0995ff 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -177,7 +177,9 @@ class Commit def title return full_title if full_title.length < 100 - full_title.truncate(81, separator: ' ', omission: '…') + # Use three dots instead of the ellipsis Unicode character because + # some clients show the raw Unicode value in the merge commit. + full_title.truncate(81, separator: ' ', omission: '...') end # Returns the full commits title |