This is an automated email from the ASF dual-hosted git repository.

sebb 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 1394b969 Tidy
1394b969 is described below

commit 1394b969a08b400f09e074d12bc447a79f599afa
Author: Sebb <[email protected]>
AuthorDate: Wed Mar 1 13:31:18 2023 +0000

    Tidy
---
 tools/collate_minutes.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index e92d72ec..3e36ae7f 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -444,10 +444,10 @@ seen={}
     reports = minutes[/^ \d\. #{section} Reports(\s*(\n|  .*\n)+)/,1]
     next unless reports
     reports.split(/^    (\w+)\./)[1..-1].each_slice(2) do |attach, comments|
-      next if attach.length > 2
+      next if attach.length > 2 # Why?
+      next if comments.include? 'See Attachment' # handled above
       owners = comments[/\[([^\n]+)\]/,1]
-      next if comments.include? 'See Attachment'
-      comments.sub! /.*\s+\n/, ''
+      comments.sub!(/.*\s+\n/, '')
       next if comments.empty?
       # TODO: This does not work properly
       attach = ('A'..attach).count.to_s if section == 'Additional Officer'

Reply via email to