You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/08 13:55:10 UTC

[whimsy] branch master updated: handle unformatted discussion items

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 18ff3f5  handle unformatted discussion items
18ff3f5 is described below

commit 18ff3f564093973cbb3e61ede8473dc1f985e23b
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sun Apr 8 09:54:54 2018 -0400

    handle unformatted discussion items
---
 www/board/agenda/models/minutes.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/models/minutes.rb b/www/board/agenda/models/minutes.rb
index d82df48..8210ece 100755
--- a/www/board/agenda/models/minutes.rb
+++ b/www/board/agenda/models/minutes.rb
@@ -108,11 +108,11 @@ class Minutes
       end
     end
 
-    minutes.mreplace(/\n\s8\.\sDiscussion\sItems\n
+    minutes.mreplace(/\n\s8\.\sDiscussion\sItems
                      (.*?)
                      \n\s9\.\s.*Action\sItems
                      /mx) do |reports|
-      break if reports.strip.empty?
+      break unless reports =~ /\n\s{3,5}[A-Z]\.\s/
       reports.mreplace(/\n\s\s\s\s(\w)\.(.*?)\n(.*?)()\s+(?:\s*\n\s\s\s\s\w\.|\z)
                      /mx) do |section, title, item, comments|
         item.sub! /\n       \[.*?\n         +\]\n/m, ''

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.