Permalink
Browse files

Small update so that 'letter-spacing' will actually work

  • Loading branch information...
1 parent 3a39cac commit d0c4c05aa2b1631e6963f2a220c6b242bab2a552 @cmex cmex committed Jun 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.slabtext.js
View
4 js/jquery.slabtext.js
@@ -124,10 +124,10 @@
finalText = postText;
};
- lineText.push('<span class="slabtext">' + (settings.wrapAmpersand ? finalText.replace("&", '<span class="amp">&amp;</span>') : finalText) + "</span>");
+ lineText.push('<span class="slabtext">' + $.trim(settings.wrapAmpersand ? finalText.replace("&", '<span class="amp">&amp;</span>') : finalText) + "</span>");
};
- $this.html(lineText.join(""));
+ $this.html(lineText.join(" "));
};
} else {
// We only need the font-size for the resize-to-fit functionality

0 comments on commit d0c4c05

Please sign in to comment.