[latex3-commits] [git/l3build] master: Out-by-one error in help() (d5295a1)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Jan 3 15:14:08 CET 2018


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/d5295a1bc06f2d7a5b8c9266de3e5cfd60269d43

>---------------------------------------------------------------

commit d5295a1bc06f2d7a5b8c9266de3e5cfd60269d43
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Jan 3 14:14:08 2018 +0000

    Out-by-one error in help()


>---------------------------------------------------------------

d5295a1bc06f2d7a5b8c9266de3e5cfd60269d43
 l3build.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3build.lua b/l3build.lua
index 1499619..b8803a4 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -1870,7 +1870,7 @@ function help()
   sort(t)
   for _,k in ipairs(t) do
     local opt = option_list[k]
-    local filler = rep(" ", longest - len(k))
+    local filler = rep(" ", longest - len(k) + 1)
     if opt["desc"] then -- Skip --help as it has no desc
       print(
         "   --" .. k .. "|-" .. opt["short"] .. filler .. opt["desc"]





More information about the latex3-commits mailing list