[Pgp-tools-commit] r676 - trunk/keyart

Aaron Toponce atoponce-guest at moszumanska.debian.org
Thu Jun 19 17:02:57 UTC 2014


Author: atoponce-guest
Date: 2014-06-19 17:02:57 +0000 (Thu, 19 Jun 2014)
New Revision: 676

Modified:
   trunk/keyart/keyart
Log:
change centering header and footer function for readability

Modified: trunk/keyart/keyart
===================================================================
--- trunk/keyart/keyart	2014-06-19 16:56:32 UTC (rev 675)
+++ trunk/keyart/keyart	2014-06-19 17:02:57 UTC (rev 676)
@@ -167,7 +167,7 @@
 
     if len(header) > 19:
         header = ''
-    art += '+{:-^19}+\n'.format(header)
+    art += '+' + str.center(header, 19, '-') + '+\n'
 
     for i, visit in enumerate(visits):
         # Build up the art with the boundaries and newlines
@@ -191,7 +191,7 @@
     else:
         footer = ''
 
-    art += '+{:-^19}+'.format(footer)
+    art += '+' + str.center(footer, 19, '-') + '+'
 
     return art
 




More information about the Pgp-tools-commit mailing list