summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 53c844d..a1206af 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -31,8 +31,9 @@ class SummaryReporter(Reporter):
if self.branches:
header += " Branch BrPart"
fmt_coverage += " %6d %6d"
- header += " Cover"
- fmt_coverage += " %5s%%"
+ width100 = Numbers.pc_str_width()
+ header += "%*s" % (width100+4, "Cover")
+ fmt_coverage += "%%%ds%%%%" % (width100+3,)
if self.show_missing:
header += " Missing"
fmt_coverage += " %s"