Changeset

10917:1eb83bc6f706

util.human.io: Fix right-alignment
author Kim Alvefur <zash@zash.se>
date Sat, 06 Jun 2020 16:43:28 +0200
parents 10916:c7ed8f754033
children 10918:b0038e404e0e
files spec/scansion/prosody.cfg.lua util/human/io.lua
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/spec/scansion/prosody.cfg.lua	Sat Jun 06 00:54:28 2020 +0200
+++ b/spec/scansion/prosody.cfg.lua	Sat Jun 06 16:43:28 2020 +0200
@@ -13,7 +13,9 @@
 
 admins = { "admin@localhost" }
 
-use_libevent = true
+network_backend = "epoll"
+network_settings = {
+}
 
 modules_enabled = {
 	-- Generally required
@@ -99,7 +101,7 @@
 
 -- Logging configuration
 -- For advanced logging see https://prosody.im/doc/logging
-log = "*console"
+log = {debug = "*console" }
 
 pidfile = "prosody.pid"
 
--- a/util/human/io.lua	Sat Jun 06 00:54:28 2020 +0200
+++ b/util/human/io.lua	Sat Jun 06 16:43:28 2020 +0200
@@ -134,7 +134,7 @@
 			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