Skip to content

Commit 3820946

Browse files
committed
Fix (most) errors reported by the no-multi-spaces ESLint rule
http://eslint.org/docs/rules/no-multi-spaces
1 parent 328e739 commit 3820946

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function createBundle(defines) {
197197
case 'mainfile':
198198
// 'buildnumber' shall create BUILD_DIR for us
199199
tmpFile = BUILD_DIR + '~' + mainOutputName + '.tmp';
200-
bundle('src/pdf.js', tmpFile, 'src/', mainFiles, mainAMDName,
200+
bundle('src/pdf.js', tmpFile, 'src/', mainFiles, mainAMDName,
201201
defines, true, versionJSON);
202202
this.push(new gutil.File({
203203
cwd: '',

src/core/font_renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ var FontRendererFactory = (function FontRendererFactoryClosure() {
437437
x = xb; y = yb;
438438
if (Math.abs(x - x0) > Math.abs(y - y0)) {
439439
x += stack.shift();
440-
} else {
440+
} else {
441441
y += stack.shift();
442442
}
443443
bezierCurveTo(xa, ya, xb, yb, x, y);

src/core/jbig2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
977977
var combinationOperator = pageInfo.combinationOperatorOverride ?
978978
regionInfo.combinationOperator : pageInfo.combinationOperator;
979979
var buffer = this.buffer;
980-
var mask0 = 128 >> (regionInfo.x & 7);
980+
var mask0 = 128 >> (regionInfo.x & 7);
981981
var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
982982
var i, j, mask, offset;
983983
switch (combinationOperator) {

src/core/jpg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ var JpegImage = (function JpegImageClosure() {
616616
component = frame.components[i];
617617
var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
618618
component.h / frame.maxH);
619-
var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
619+
var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
620620
component.v / frame.maxV);
621621
var blocksPerLineForMcu = mcusPerLine * component.h;
622622
var blocksPerColumnForMcu = mcusPerColumn * component.v;

src/core/jpx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ var JpxImage = (function JpxImageClosure() {
14841484
var qcdOrQcc = (context.currentTile.QCC[c] !== undefined ?
14851485
context.currentTile.QCC[c] : context.currentTile.QCD);
14861486
component.quantizationParameters = qcdOrQcc;
1487-
var codOrCoc = (context.currentTile.COC[c] !== undefined ?
1487+
var codOrCoc = (context.currentTile.COC[c] !== undefined ?
14881488
context.currentTile.COC[c] : context.currentTile.COD);
14891489
component.codingStyleParameters = codOrCoc;
14901490
}
@@ -1552,7 +1552,7 @@ var JpxImage = (function JpxImageClosure() {
15521552
})();
15531553

15541554
var InclusionTree = (function InclusionTreeClosure() {
1555-
function InclusionTree(width, height, defaultValue) {
1555+
function InclusionTree(width, height, defaultValue) {
15561556
var levelsLength = log2(Math.max(width, height)) + 1;
15571557
this.levels = [];
15581558
for (var i = 0; i < levelsLength; i++) {

src/display/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ var PDFWorker = (function PDFWorkerClosure() {
13141314
}
13151315
try {
13161316
sendTest();
1317-
} catch (e) {
1317+
} catch (e) {
13181318
// We need fallback to a faked worker.
13191319
this._setupFakeWorker();
13201320
}

src/display/canvas.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
654654
}
655655
if (sourceCtx.setLineDash !== undefined) {
656656
destCtx.setLineDash(sourceCtx.getLineDash());
657-
destCtx.lineDashOffset = sourceCtx.lineDashOffset;
657+
destCtx.lineDashOffset = sourceCtx.lineDashOffset;
658658
}
659659
}
660660

@@ -1862,7 +1862,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
18621862
var cacheId = 'groupAt' + this.groupLevel;
18631863
if (group.smask) {
18641864
// Using two cache entries is case if masks are used one after another.
1865-
cacheId += '_smask_' + ((this.smaskCounter++) % 2);
1865+
cacheId += '_smask_' + ((this.smaskCounter++) % 2);
18661866
}
18671867
var scratchCanvas = this.cachedCanvases.getCanvas(
18681868
cacheId, drawnWidth, drawnHeight, true);

src/display/webgl.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ var WebGLUtils = (function WebGLUtilsClosure() {
165165
var texCoordBuffer = gl.createBuffer();
166166
gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);
167167
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([
168-
0.0, 0.0,
169-
1.0, 0.0,
170-
0.0, 1.0,
171-
0.0, 1.0,
172-
1.0, 0.0,
173-
1.0, 1.0]), gl.STATIC_DRAW);
168+
0.0, 0.0,
169+
1.0, 0.0,
170+
0.0, 1.0,
171+
0.0, 1.0,
172+
1.0, 0.0,
173+
1.0, 1.0]), gl.STATIC_DRAW);
174174
gl.enableVertexAttribArray(texCoordLocation);
175175
gl.vertexAttribPointer(texCoordLocation, 2, gl.FLOAT, false, 0, 0);
176176

test/driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ var Driver = (function DriverClosure() {
288288
var self = this;
289289
window.onerror = function(message, source, line, column, error) {
290290
self._info('Error: ' + message + ' Script: ' + source + ' Line: ' +
291-
line + ' Column: ' + column + ' StackTrace: ' + error);
291+
line + ' Column: ' + column + ' StackTrace: ' + error);
292292
};
293293
this._info('User agent: ' + navigator.userAgent);
294294
this._log('Harness thinks this browser is "' + this.browser +

web/ui_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function approximateFraction(x) {
260260
var limit = 8;
261261
if (xinv > limit) {
262262
return [1, limit];
263-
} else if (Math.floor(xinv) === xinv) {
263+
} else if (Math.floor(xinv) === xinv) {
264264
return [1, xinv];
265265
}
266266

0 commit comments

Comments
 (0)