Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace

  • Loading branch information...
commit 96690026841ddc043c146bfc3623d87a31d5844e 1 parent 263012d
@alecperkins alecperkins authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 js/jquery.slabtext.js
View
12 js/jquery.slabtext.js
@@ -38,12 +38,12 @@
$.extend(settings, options);
};
- var $this = $(this),
+ var $this = $(this),
keepSpans = $("span.slabtext", $this).length,
- words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "),
- origFontSize = null,
- idealCharPerLine = null,
- fontRatio = settings.fontRatio,
+ words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "),
+ origFontSize = null,
+ idealCharPerLine = null,
+ fontRatio = settings.fontRatio,
forceNewCharCount = settings.forceNewCharCount,
headerBreakpoint = settings.headerBreakpoint,
viewportBreakpoint = settings.viewportBreakpoint,
@@ -132,7 +132,7 @@
// use that one for the line
if((preDiff < postDiff) && (preText.length > 2)) {
finalText = preText;
- wordIndex--;
+ wordIndex--;
// otherwise, use the longer string for the line
} else {
finalText = postText;
Please sign in to comment.
Something went wrong with that request. Please try again.