Skip to content

Commit 7c3b76b

Browse files
committed
fix(wc): adjust column width from 8 to 4 characters for standard alignment
- Change rjust(8) to rjust(4) in print_formatted_report - Matches real wc utility column formatting more closely - Reduces excessive whitespace in output - Update comment to reflect correct width value
1 parent e7ffcfe commit 7c3b76b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • implement-shell-tools/wc

implement-shell-tools/wc/wc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def print_formatted_report(stats, active_flags):
2121
output_parts = []
2222

2323
for flag in active_flags:
24-
# Standard wc uses a width of 8 for numbers
25-
output_parts.append(str(stats[flag]).rjust(8))
24+
# Standard wc uses a width of 4 for numbers
25+
output_parts.append(str(stats[flag]).rjust(4))
2626

2727
# Join the numbers and add the display name at the end
2828
result = "".join(output_parts)

0 commit comments

Comments
 (0)