Software /
code /
prosody
Diff
util/human/io.lua @ 10917:1eb83bc6f706
util.human.io: Fix right-alignment
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Jun 2020 16:43:28 +0200 |
parent | 10911:9dc34e1556d9 |
child | 11892:e712133b4de1 |
line wrap: on
line diff
--- 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