diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-10 23:10:59 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-10 16:26:21 +0300 |
commit | e179707844b043fac6f81a30f82e5f4ba446abde (patch) | |
tree | d8f63cdd15cf4ffe19260f687c6a803832e9686d /app/services | |
parent | 09c2aab4aa4661b147545e2c41b6a0100fc57b11 (diff) |
Extract generic parts of Gitlab::Diff::InlineDiffMarker
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/system_note_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 174e7c6e95b..cb93def07df 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -291,8 +291,8 @@ module SystemNoteService old_diffs, new_diffs = Gitlab::Diff::InlineDiff.new(old_title, new_title).inline_diffs - marked_old_title = Gitlab::Diff::InlineDiffMarker.new(old_title).mark(old_diffs, mode: :deletion, markdown: true) - marked_new_title = Gitlab::Diff::InlineDiffMarker.new(new_title).mark(new_diffs, mode: :addition, markdown: true) + marked_old_title = Gitlab::Diff::InlineDiffMarkdownMarker.new(old_title).mark(old_diffs, mode: :deletion) + marked_new_title = Gitlab::Diff::InlineDiffMarkdownMarker.new(new_title).mark(new_diffs, mode: :addition) body = "changed title from **#{marked_old_title}** to **#{marked_new_title}**" |