Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

letter-spacing issue #8

Merged
merged 1 commit into from

2 participants

@cmex

Hi!
Thanks for this awesome plugin. We've used it on our www.urbankbh.dk site and I've found an issue with single-word slabs - the letter-spacing is not working with it. After small investigation I've found a solution that will actually help.
Regards,
Sergey

@freqdec freqdec merged commit 8418a41 into from
@freqdec
Owner

Thanks for the fix! Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 6, 2012
  1. @cmex
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.