From 8384a185a6aa8e04f7fc38b52d0883b3f7269d81 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 17 Jan 2014 19:54:59 -0600 Subject: [PATCH] fix generateTags. --- lib/widget.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 + '}'; + } } });