summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2016-05-09 15:22:43 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-05-10 04:20:53 +0000
commit7557ca1a242fe9ecf4479f12e6313dd00a9a3147 (patch)
tree6f46f73b9a1e7083f0ca21e7482ca2c04fe512a6 /src
parentdb34e6f898728b1db16d136349698872e0149d2e (diff)
Fix formatting of percentage display in the footer
If the sum of all changes in percent is not an integral number, then the auto-formatting (title'ifying) of for example "16.43%" to "14 43%" looks really odd. Disabling the auto-formatting fixes this as well as the capitalization. Change-Id: I30cc92ac487726579f7667511cfd5d0baa69a7a6 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src')
-rw-r--r--src/qtestcompare/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qtestcompare/main.go b/src/qtestcompare/main.go
index b1e9a17d..9e50e662 100644
--- a/src/qtestcompare/main.go
+++ b/src/qtestcompare/main.go
@@ -148,6 +148,7 @@ func (results *MergedTestResults) compare(output io.Writer) {
sort.Sort(ByName(sortedResults))
table := tablewriter.NewWriter(output)
+ table.SetAutoFormatHeaders(false)
table.SetHeader([]string{"Test", "From", "To", "Details"})
table.SetBorder(false)