From f3bb6145033d29b90f3440a00882b749db7202d4 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Wed, 13 Apr 2011 18:49:29 +0200 Subject: [PATCH] inferred parameter comments had extra line feed --- tools.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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