From 16b32934688148d89a8f9b2d4cde60228a000de4 Mon Sep 17 00:00:00 2001 From: Lesley De Cruz Date: Sat, 27 Feb 2016 21:51:47 +0100 Subject: [PATCH] Don't print an empty description in build_codestring() in tester module --- tester.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tester.lua b/tester.lua index 30b341197c..f7b98c0af5 100644 --- a/tester.lua +++ b/tester.lua @@ -116,7 +116,8 @@ end local function build_codestring(test) return tconcat({ "--- ", test.name, - "\n--", tconcat(test.description,"\n--"), "\n", + #test.description>0 and "\n--" or "", + tconcat(test.description,"\n--"), "\n", tconcat(test.code,"\n") }) end