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 4ca5b3ac Allow for trailing spaces in podlng hdrs
4ca5b3ac is described below

commit 4ca5b3acac9bace2c64f06e36a531ebc7887c689
Author: Sebb <[email protected]>
AuthorDate: Sat Dec 9 13:40:26 2023 +0000

    Allow for trailing spaces in podlng hdrs
---
 tools/collate_minutes.rb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index d3af14bf..88a9b1b1 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -359,10 +359,15 @@ seen={}
 
     if title == 'Incubator' and text
       sections = text.split(/\nStatus [rR]eport (.*)\n=+\n/)
-      # Some minutes have a 'Detailed Reports' header before the first podling 
report
+      # Some early 2012 minutes have a 'Detailed Reports' header before the 
first podling report
+      # i.e. the podling reports follow the line
+      # '-------------------- Detailed Reports --------------------'
+      # instead of the following
+      # '--------------------'
+      # Some reports include trailing spaces after the ----
       # podling header may now be prefixed with ## (since June 2019)
       # 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 = text.split(/\n[-=][-=]+(?: Detailed Reports 
---+)?\s*\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

Reply via email to