summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-07-22 13:25:24 +0800
committerPatrick Bajao <ebajao@gitlab.com>2019-07-22 13:25:24 +0800
commit866bef8059591db9a17db71d66a1321b0ca25153 (patch)
tree84dcaf3f611c769c5676220040d163374fbcd3f0 /changelogs
parentbf172b115c206cb6ed6c2b271fad600f1548b43c (diff)
downloadgitlab-ce-866bef8059591db9a17db71d66a1321b0ca25153.tar.gz
Fix suggestion on lines that are not part of an MR57953-fix-unfolded-diff-suggestions
Return the `text` as plain string in the response instead of including HTML tags but keep `rich_text` as is. The fix is to modify `Blob::UnfoldPresenter#diff_files` to map each raw diff line (limited by the range specified) to a corresponding line in an array of highlighted lines to use as `rich_text`.
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/unreleased/57953-fix-unfolded-diff-suggestions.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/57953-fix-unfolded-diff-suggestions.yml b/changelogs/unreleased/57953-fix-unfolded-diff-suggestions.yml
new file mode 100644
index 00000000000..f634c0cd98a
--- /dev/null
+++ b/changelogs/unreleased/57953-fix-unfolded-diff-suggestions.yml
@@ -0,0 +1,5 @@
+---
+title: Fix suggestion on lines that are not part of an MR
+merge_request: 30606
+author:
+type: fixed