diff --git a/lib/widget.js b/lib/widget.js index a36afa7..2c9266e 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -6265,8 +6265,10 @@ function generateTags(style, text) { open = '{' + val + '-' + key + '}' + open; close += '{/' + val + '-' + key + '}'; } else { - open = '{' + key + '}' + open; - close += '{/' + key + '}'; + if (val) { + open = '{' + key + '}' + open; + close += '{/' + key + '}'; + } } });