aboutsummaryrefslogtreecommitdiffstats
path: root/util/human/io.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-06 16:43:28 +0200
committerKim Alvefur <zash@zash.se>2020-06-06 16:43:28 +0200
commit4a0cb5a30643224dd6a9ebd91e53e257badaf7f9 (patch)
treeadd9ec4247e7efa2d62962d15a08d0bac4141f6d /util/human/io.lua
parente0837564185908155cf41dcacc0d99d9a5df33b0 (diff)
downloadprosody-4a0cb5a30643224dd6a9ebd91e53e257badaf7f9.tar.gz
prosody-4a0cb5a30643224dd6a9ebd91e53e257badaf7f9.zip
util.human.io: Fix right-alignment
Diffstat (limited to 'util/human/io.lua')
-rw-r--r--util/human/io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/human/io.lua b/util/human/io.lua
index 7285c79f..a38ab5dd 100644
--- a/util/human/io.lua
+++ b/util/human/io.lua
@@ -134,7 +134,7 @@ local function new_table(col_specs, max_width)
local v = (not titles and column.mapper or tostring)(row[not titles and column.key or i] or "", row);
if #v < width then
if column.align == "right" then
- v = padleft(v, width-1).." ";
+ v = padleft(v, width);
else
v = padright(v, width);
end