diff --git a/tools.lua b/tools.lua index c705a27..a6f241b 100644 --- a/tools.lua +++ b/tools.lua @@ -192,7 +192,8 @@ function M.get_parameters (tok) if #ltl[1] == 0 then return args end -- no arguments local function set_comment (idx,tok) - args.comments[args[idx]] = value_of(tok) + local text = value_of(tok):gsub('%s*$','') + args.comments[args[idx]] = text end for i = 1,#ltl do