Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Perkins committed Sep 25, 2012
1 parent 263012d commit 9669002
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/jquery.slabtext.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
$.extend(settings, options); $.extend(settings, options);
}; };


var $this = $(this), var $this = $(this),
keepSpans = $("span.slabtext", $this).length, keepSpans = $("span.slabtext", $this).length,
words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "), words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "),
origFontSize = null, origFontSize = null,
idealCharPerLine = null, idealCharPerLine = null,
fontRatio = settings.fontRatio, fontRatio = settings.fontRatio,
forceNewCharCount = settings.forceNewCharCount, forceNewCharCount = settings.forceNewCharCount,
headerBreakpoint = settings.headerBreakpoint, headerBreakpoint = settings.headerBreakpoint,
viewportBreakpoint = settings.viewportBreakpoint, viewportBreakpoint = settings.viewportBreakpoint,
Expand Down Expand Up @@ -132,7 +132,7 @@
// use that one for the line // use that one for the line
if((preDiff < postDiff) && (preText.length > 2)) { if((preDiff < postDiff) && (preText.length > 2)) {
finalText = preText; finalText = preText;
wordIndex--; wordIndex--;
// otherwise, use the longer string for the line // otherwise, use the longer string for the line
} else { } else {
finalText = postText; finalText = postText;
Expand Down

0 comments on commit 9669002

Please sign in to comment.