diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-18 18:57:14 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-20 09:57:31 +0800 |
commit | 90e6893b967cded4bf45380d643d3bfcb19ce0d4 (patch) | |
tree | 64c0ad7da5d47437c2d59374fdb8803702c5de8e /qtip/reporter/filters.py | |
parent | b40f4ca8366037551d17ce93f892caba464f9bc0 (diff) |
Set default width to 80 for justify filter
- 80 default screen width for most consoles
- template content should not be part of console reporter test
- remove fix width splitter in console report templates
Change-Id: Ib060b447bd52c211a4bf1e4ded2f898a9201b6d8
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/reporter/filters.py')
-rw-r--r-- | qtip/reporter/filters.py | 2 |
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) |