Skip to content

Commit cc3a482

Browse files
committed
fix: using tabs rather than space
1 parent 4cb8e57 commit cc3a482

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

implement-shell-tools/cat/customCat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ for (const filePath of argv) {
2929
if (options.nonBlank) {
3030
if (line !== "") {
3131
count++;
32-
process.stdout.write(`${count.toString().padStart(6)} ${line}\n`);
32+
process.stdout.write(`${count.toString().padStart(6)}\t${line}\n`);
3333
} else process.stdout.write(`${line}\n`);
3434
} else if (options.number) {
3535
process.stdout.write(
36-
`${(count++ + 1).toString().padStart(6)} ${line}\t`,
36+
`${(count++ + 1).toString().padStart(6)}\t${line}\n`,
3737
);
3838
} else {
3939
process.stdout.write(`${line}\n`);

0 commit comments

Comments
 (0)