whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [2/2] Commit fab05de: run linebreak first
Date Tue, 16 Feb 2016 18:51:29 GMT
Commit fab05de0549db40326cdb186d61df1443bf88e14:
    run linebreak first


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/board/agenda/views/pages/report.js.rb                    | ++ --
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/board/agenda/views/pages/report.js.rb b/www/board/agenda/views/pages/report.js.rb
index f425736..32c68bf 100644
--- a/www/board/agenda/views/pages/report.js.rb
+++ b/www/board/agenda/views/pages/report.js.rb
@@ -58,7 +58,7 @@ def componentWillMount()
 
   def componentWillReceiveProps()
     # determine what text filters to run
-    @filters = [hotlink, self.privates, self.jira, self.linebreak]
+    @filters = [self.linebreak, hotlink, self.privates, self.jira]
     @filters << self.localtime if @@item.title == 'Call to order'
     @filters << self.names if @@item.people
     @filters << self.president_attachments if @@item.title == 'President'
@@ -89,7 +89,7 @@ def componentWillReceiveProps()
   # Break long lines
   def linebreak(text)
     # find long, breakable lines
-    regex = Regexp.new(/.{80}.*/, 'g')
+    regex = Regexp.new(/.{80}.+/, 'g')
     result = nil
     indicies = [];
     while result = regex.exec(text)

Mime
View raw message