[meta-freescale] [Documentation][PATCH 2/4] tabularize: center	header text on the columns
    Lucas Dutra Nunes 
    ldnunes at ossystems.com.br
       
    Sat Feb 27 06:40:21 PST 2016
    
    
  
Signed-off-by: Lucas Dutra Nunes <ldnunes at ossystems.com.br>
---
 scripts/doc_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/doc_utils.py b/scripts/doc_utils.py
index 0904c35..8344eaf 100644
--- a/scripts/doc_utils.py
+++ b/scripts/doc_utils.py
@@ -4,7 +4,7 @@ def tabularize(lines, spacing=2):
 
     def format_header(header, widths, spc):
         border = format_border(widths)
-        header = spc.join(map(lambda col, width: col.ljust(width),
+        header = spc.join(map(lambda col, width: col.center(width),
                               header, widths)).rstrip()
         return '\n'.join([border, header, border])
 
-- 
2.1.4
    
    
More information about the meta-freescale
mailing list