Skip to content

Commit 9eb8013

Browse files
committed
cosmetic: remove whitespace at end of lines
1 parent b37b9df commit 9eb8013

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/SubtitleOctopus.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ class SubtitleOctopus {
294294
{
295295
float pix_alpha = bitmap[bitmap_offset + x] * normalized_a / 255.0;
296296
float inv_alpha = 1.0 - pix_alpha;
297-
297+
298298
int buf_coord = (buf_line_coord + curx + x) << 2;
299299
float *buf_r = buf + buf_coord;
300300
float *buf_g = buf + buf_coord + 1;
301301
float *buf_b = buf + buf_coord + 2;
302302
float *buf_a = buf + buf_coord + 3;
303-
303+
304304
// do the compositing, pre-multiply image RGB with alpha for current pixel
305305
*buf_a = pix_alpha + *buf_a * inv_alpha;
306306
*buf_r = r * pix_alpha + *buf_r * inv_alpha;
@@ -332,7 +332,7 @@ class SubtitleOctopus {
332332
result[buf_line_coord + x] = pixel;
333333
}
334334
}
335-
335+
336336
// return the thing
337337
m_blendResult.dest_x = min_x;
338338
m_blendResult.dest_y = min_y;

src/post-worker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ self.fontId = 0;
2121
*/
2222
self.writeFontToFS = function(font) {
2323
font = font.trim().toLowerCase();
24-
24+
2525
if (font.startsWith("@")) {
2626
font = font.substr(1);
2727
}
28-
28+
2929
if (self.fontMap_.hasOwnProperty(font)) return;
3030

3131
self.fontMap_[font] = true;
3232

3333
if (!self.availableFonts.hasOwnProperty(font)) return;
3434
var content = readBinary(self.availableFonts[font]);
3535

36-
Module["FS"].writeFile('/fonts/font' + (self.fontId++) + '-' + self.availableFonts[font].split('/').pop(), content, {
36+
Module["FS"].writeFile('/fonts/font' + (self.fontId++) + '-' + self.availableFonts[font].split('/').pop(), content, {
3737
encoding: 'binary'
3838
});
3939
};
@@ -54,7 +54,7 @@ self.writeAvailableFontsToFS = function(content) {
5454
}
5555
}
5656
}
57-
57+
5858
var regex = /\\fn([^\\}]*?)[\\}]/g;
5959
var matches;
6060
while (matches = regex.exec(self.subContent)) {
@@ -144,7 +144,7 @@ self.setCurrentTime = function (currentTime) {
144144
}
145145
else {
146146
self.getRenderMethod()();
147-
147+
148148
// Give onmessage chance to receive all queued messages
149149
setTimeout(function () {
150150
self.nextIsRaf = false;

0 commit comments

Comments
 (0)