Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-03-08 02:55:50 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-03-13 10:27:51 +0300
commit5eee47758ccba75e2d1d7fa1c30b98a4c2820108 (patch)
tree3a9ffd12a641f76b97b155ad167fbdbcff009f1a /app/services/issues
parent52c0195dccb7057dab5ecce74d2095ddb80c1b53 (diff)
Correctly indent quotes in new issue description
By using `>`-quote style instead of `>>>`. Also: Update documentation images.
Diffstat (limited to 'app/services/issues')
-rw-r--r--app/services/issues/build_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/issues/build_service.rb b/app/services/issues/build_service.rb
index 540ed0f98c2..3d4b6b055c4 100644
--- a/app/services/issues/build_service.rb
+++ b/app/services/issues/build_service.rb
@@ -43,7 +43,8 @@ module Issues
discussion_info << " (+#{other_note_count} #{'comment'.pluralize(other_note_count)})" if other_note_count > 0
note_without_block_quotes = Banzai::Filter::BlockquoteFenceFilter.new(first_note.note).call
- quote = ">>>\n#{note_without_block_quotes}\n>>>"
+ spaces = ' ' * 4
+ quote = note_without_block_quotes.lines.map { |line| "#{spaces}> #{line}" }.join
[discussion_info, quote].join("\n\n")
end