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: remove trailing spaces on lines when reflowing
Date Thu, 09 Nov 2017 15:43:41 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new f67f657  remove trailing spaces on lines when reflowing
f67f657 is described below

commit f67f65700751c89b436f1d19631f3986349e1848
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Nov 9 10:43:19 2017 -0500

    remove trailing spaces on lines when reflowing
---
 www/board/agenda/views/utils.js.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/board/agenda/views/utils.js.rb b/www/board/agenda/views/utils.js.rb
index 137620a..024a75b 100644
--- a/www/board/agenda/views/utils.js.rb
+++ b/www/board/agenda/views/utils.js.rb
@@ -148,6 +148,9 @@ class Flow
 
   # reflow text
   def self.text(text, indent='')
+    # remove trailing spaces on lines
+    text.gsub! /[ \r\t]+\n/, "\n"
+
     # join consecutive lines (making exception for <markers> like <private>)
     text.gsub! /([^\s>])\n(\w)/, '$1 $2'
 

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

Mime
View raw message