whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Allow for blank line at start of podling report
Date Fri, 12 Mar 2021 15:59:05 GMT
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 d0f814f  Allow for blank line at start of podling report
d0f814f is described below

commit d0f814f655c7d6b4555f5d768df8111ed7037dcf
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Mar 12 15:58:58 2021 +0000

    Allow for blank line at start of podling report
---
 tools/collate_minutes.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 96f9329..5595728 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -347,7 +347,8 @@ seen={}
       sections = text.split(/\nStatus [rR]eport (.*)\n=+\n/)
       # Some minutes have a 'Detailed Reports' header before the first podling report
       # podling header may now be prefixed with ## (since June 2019)
-      sections = text.split(/\n[-=][-=]+(?: Detailed Reports ---+)?\n(?:##)?\s*([a-zA-Z].*)\n\n/)
if sections.length < 9
+      # Also there may be a blank line before the ##
+      sections = text.split(/\n[-=][-=]+(?: Detailed Reports ---+)?\n(?:\n?##)?\s*([a-zA-Z].*)\n\n/)
if sections.length < 9
       sections = [''] if sections.include? 'FAILED TO REPORT'
       sections = text.split(/\n(\w+)\n-+\n\n/) if sections.length < 9
       sections = text.split(/\n=+\s+([\w.]+)\s+=+\n+/) if sections.length < 9


Mime
View raw message