Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6a32f23

Browse files
cocobearjdneo
authored andcommitted
fix alignment (leetcode-tools#39)
1 parent 89572fc commit 6a32f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/commands/stat.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ function showGraph(problems) {
9898
const header = _.range(groups)
9999
.map(x => sprintf('%4s%18s', x * 10 + 1, x * 10 + 10))
100100
.join('');
101-
log.info(' ' + header);
101+
log.info(' ' + header);
102102

103103
const graph = [];
104104
for (let problem of problems)
105105
graph[problem.fid] = ICONS[problem.state] || ICONS.none;
106106

107-
let line = [sprintf(' %03s', 0)];
107+
let line = [sprintf(' %04s', 0)];
108108
for (let i = 1, n = graph.length; i <= n; ++i) {
109109
// padding before group
110110
if (i % 10 === 1) line.push(' ');
@@ -114,7 +114,7 @@ function showGraph(problems) {
114114
// time to start new row
115115
if (i % (10 * groups) === 0 || i === n) {
116116
log.info(line.join(' '));
117-
line = [sprintf(' %03s', i)];
117+
line = [sprintf(' %04s', i)];
118118
}
119119
}
120120

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /