incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1509753 - /incubator/public/trunk/clutch2report.py
Date Fri, 02 Aug 2013 15:59:43 GMT
Author: marvin
Date: Fri Aug  2 15:59:43 2013
New Revision: 1509753

URL: http://svn.apache.org/r1509753
Log:
Wrap report at 78 characters per line.

Modified:
    incubator/public/trunk/clutch2report.py

Modified: incubator/public/trunk/clutch2report.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2report.py?rev=1509753&r1=1509752&r2=1509753&view=diff
==============================================================================
--- incubator/public/trunk/clutch2report.py (original)
+++ incubator/public/trunk/clutch2report.py Fri Aug  2 15:59:43 2013
@@ -4,6 +4,7 @@ import pprint
 from string import Template
 import datetime
 import argparse
+import textwrap
 import calendar
 import xmlrpc
 import xmlrpc.client
@@ -92,7 +93,7 @@ wishing to become part of the Foundation
 ----------------------------------------------------------------------
                        Table of Contents
 {toc}
-----------------------------------------------------------------------                  
 
+---------------------------------------------------------------------- 
 """
 
 perproject = """
@@ -109,7 +110,8 @@ Three most important issues to address i
   2. 
   3. 
 
-Any issues that the Incubator PMC (IPMC) or ASF Board wish/need to be aware of?
+Any issues that the Incubator PMC (IPMC) or ASF Board wish/need to be
+aware of?
 
 
 
@@ -187,8 +189,9 @@ def main():
                 mentor_box = "[ ]({0}) {1}".format(project, mentor)
                 mentor_boxes.append(mentor_box)
             mentorlist = "\n  ".join(mentor_boxes)
+            description = textwrap.fill(pdata['description'], 78)
             pdict = { 'name': pdata['fullName'], 
-                      'description': pdata['description'],
+                      'description': description,
                       'start': pdata['startDate'],
                       'mentorlist' : mentorlist}
             output.write(ptemplate.substitute(pdict))



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message