From 1bc9ed4488bb163fad4d116d3148108c6053f995 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Mon, 29 Oct 2018 15:25:16 +0100 Subject: [PATCH] No backticks in case we have the empty string as a default value --- createDocu.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createDocu.groovy b/createDocu.groovy index 45867de6e..e95eae039 100644 --- a/createDocu.groovy +++ b/createDocu.groovy @@ -18,7 +18,7 @@ class TemplateHelper { parameters.keySet().toSorted().each { def props = parameters.get(it) - t += "| `${it}` | ${props.required ? 'yes' : 'no'} | `${(props.defaultValue ?: '') }` | ${props.value ?: ''} |\n" + t += "| `${it}` | ${props.required ? 'yes' : 'no'} | ${(props.defaultValue ? '`' + props.defaultValue + '`' : '') } | ${props.value ?: ''} |\n" } t