whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: add some whitespace between comments
Date Thu, 21 Apr 2016 20:27:56 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  a484a00   add some whitespace between comments
a484a00 is described below

commit a484a004673a7e2a9e5878e0a3050306a23b8040
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Apr 21 16:27:40 2016 -0400

    add some whitespace between comments
---
 www/board/agenda/views/actions/feedback.json.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/feedback.json.rb b/www/board/agenda/views/actions/feedback.json.rb
index 73a1dad..a7f7917 100644
--- a/www/board/agenda/views/actions/feedback.json.rb
+++ b/www/board/agenda/views/actions/feedback.json.rb
@@ -37,7 +37,8 @@ Agenda.parse(@agenda, :full).each do |item|
   text = ''
 
   if item['comments'] and not item['comments'].empty?
-    text += "\nComments:\n#{item['comments'].gsub(/^/, '  ')}\n"
+    comments = item['comments'].gsub(/^(\S)/, "\n\\1")
+    text += "\nComments:\n#{comments.gsub(/^/, '  ')}\n"
   end
 
   if minutes[item['title']]

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message