diff --git a/js/jquery.slabtext.js b/js/jquery.slabtext.js index cd5f242..7f3c0ae 100644 --- a/js/jquery.slabtext.js +++ b/js/jquery.slabtext.js @@ -124,10 +124,10 @@ finalText = postText; }; - lineText.push('' + (settings.wrapAmpersand ? finalText.replace("&", '&') : finalText) + ""); + lineText.push('' + $.trim(settings.wrapAmpersand ? finalText.replace("&", '&') : finalText) + ""); }; - $this.html(lineText.join("")); + $this.html(lineText.join(" ")); }; } else { // We only need the font-size for the resize-to-fit functionality