Commit c8ad96b
committed
Fix table column alignment for ratio values
The ljust padding in format_ratio added trailing spaces to reserve room
for significance symbols, but these spaces were then stripped by rstrip
in the table formatter's format_row, causing the last column to lose its
right-alignment.
This was exposed by #492 which made pval nil when --pvalue is not passed,
meaning the significance symbol is always empty in the common case, yet
the ljust padding was still applied and then stripped.
Remove the ljust padding entirely and let the table formatter handle
column alignment, restoring the original format_ratio logic.1 parent 13eee7a commit c8ad96b
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
0 commit comments