summaryrefslogtreecommitdiffstats
path: root/qtip/reporter/filters.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 12:58:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-20 12:58:47 +0000
commit1227dc7e737e9946f316c7693232a9f5cbe166ed (patch)
treeef5864102712a9cfbca26c511fabfd270e896746 /qtip/reporter/filters.py
parenta1325130fdbbab0c58a08d636b8c0419504020a8 (diff)
parent90e6893b967cded4bf45380d643d3bfcb19ce0d4 (diff)
Merge "Set default width to 80 for justify filter"
Diffstat (limited to 'qtip/reporter/filters.py')
-rw-r--r--qtip/reporter/filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtip/reporter/filters.py b/qtip/reporter/filters.py
index dc46e195..c0c379df 100644
--- a/qtip/reporter/filters.py
+++ b/qtip/reporter/filters.py
@@ -8,7 +8,7 @@
##############################################################################
-def justify(pair, width=100, padding_with='.'):
+def justify(pair, width=80, padding_with='.'):
"""align first element along the left margin, second along the right, padding spaces"""
n = width - len(pair[0])
return '{key}{value:{c}>{n}}'.format(key=pair[0], value=pair[1], c=padding_with, n=n)