You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/11/30 18:22:32 UTC
[whimsy] branch master updated: Tidy up output
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 <se...@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