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: Tidy up output
Date Sat, 30 Nov 2019 18:22:32 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 7b05553  Tidy up output
7b05553 is described below

commit 7b05553b1d0feb928f6af69eacef377a567e329c
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Nov 30 18:22:15 2019 +0000

    Tidy up output
---
 www/secretary/icla-parse.cgi | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/www/secretary/icla-parse.cgi b/www/secretary/icla-parse.cgi
index 97d9e4d..98878c8 100755
--- a/www/secretary/icla-parse.cgi
+++ b/www/secretary/icla-parse.cgi
@@ -37,12 +37,19 @@ begin
   parsed[:_meta].sort_by{|k,v| k.to_s }.each do |k,v|
     if k == 'info'
       v.sort_by{|k,v| k.to_s }.each do |k,v|
-        puts "%-20s %s %s" % ['info',k,v]
+        puts "%-20s %-15s %s" % ['info',k,v]
       end
-    else
+    elsif k != 'metadata' # can be long
       puts "%-20s %s" % [k,v]
     end
   end
+  metadata = parsed[:_meta]['metadata']
+  if metadata
+    puts ""
+    puts "metadata:"
+    puts metadata
+  end
+  
   
 rescue Exception => e
   p e


Mime
View raw message