Skip to content

Commit

Permalink
fixed text padding
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Jun 1, 2021
1 parent 2fb9704 commit 5e1d516
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions www/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ function mapHtmlBinHashes(o, parent, num) {
parent.appendChild(_ce("span", "log-notify", '- ' + o.filename + ' \n'));
Object.keys(o).sort().forEach(function(k) {
if (k == 'filename') return;
var rep = 5 - k.length;
if (rep < 0) rep = 0;
parent.appendChild(_ce("span", "log-notify", ' + ' + k + ": " + " ".repeat(rep) + o[k].toUpperCase() + '\n'));
parent.appendChild(_ce("span", "log-notify", ' + ' + k + ": " + " ".repeat(Math.max(8 - k.length, 0)) + o[k].toUpperCase() + '\n'));
});
}

Expand Down
2 changes: 1 addition & 1 deletion www/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function mapMarkdownBinHashes(o, num) {
var t = o.filename + '\n';
Object.keys(o).sort().forEach(function(k) {
if (k == 'filename') return;
t += ' ' + k + ": " + " ".repeat(Math.max(5 - k.length, 0)) + o[k].toUpperCase() + '\n';
t += ' ' + k + ": " + " ".repeat(Math.max(8 - k.length, 0)) + o[k].toUpperCase() + '\n';
});
return t.trim();
}
Expand Down
2 changes: 1 addition & 1 deletion www/textile.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function mapTextileBinHashes(o, num) {
var t = o.filename + '\n';
Object.keys(o).sort().forEach(function(k) {
if (k == 'filename') return;
t += ' ' + k + ": " + " ".repeat(Math.max(5 - k.length, 0)) + o[k].toUpperCase() + '\n';
t += ' ' + k + ": " + " ".repeat(Math.max(8 - k.length, 0)) + o[k].toUpperCase() + '\n';
});
return t.trim();
}
Expand Down

0 comments on commit 5e1d516

Please sign in to comment.