aboutsummaryrefslogtreecommitdiffstats
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
parente0837564185908155cf41dcacc0d99d9a5df33b0 (diff)
downloadprosody-4a0cb5a30643224dd6a9ebd91e53e257badaf7f9.tar.gz
prosody-4a0cb5a30643224dd6a9ebd91e53e257badaf7f9.zip
util.human.io: Fix right-alignment
-rw-r--r--spec/scansion/prosody.cfg.lua6
-rw-r--r--util/human/io.lua2
2 files changed, 5 insertions, 3 deletions
diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua
index 4cf03de8..3fa36ab9 100644
--- a/spec/scansion/prosody.cfg.lua
+++ b/spec/scansion/prosody.cfg.lua
@@ -13,7 +13,9 @@ end
admins = { "admin@localhost" }
-use_libevent = true
+network_backend = "epoll"
+network_settings = {
+}
modules_enabled = {
-- Generally required
@@ -99,7 +101,7 @@ mam_smart_enable = true
-- Logging configuration
-- For advanced logging see https://prosody.im/doc/logging
-log = "*console"
+log = {debug = "*console" }
pidfile = "prosody.pid"
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