We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb8e57 commit cc3a482Copy full SHA for cc3a482
1 file changed
implement-shell-tools/cat/customCat.js
@@ -29,11 +29,11 @@ for (const filePath of argv) {
29
if (options.nonBlank) {
30
if (line !== "") {
31
count++;
32
- process.stdout.write(`${count.toString().padStart(6)} ${line}\n`);
+ process.stdout.write(`${count.toString().padStart(6)}\t${line}\n`);
33
} else process.stdout.write(`${line}\n`);
34
} else if (options.number) {
35
process.stdout.write(
36
- `${(count++ + 1).toString().padStart(6)} ${line}\t`,
+ `${(count++ + 1).toString().padStart(6)}\t${line}\n`,
37
);
38
} else {
39
process.stdout.write(`${line}\n`);
0 commit comments