19 Commits
Author SHA1 Message Date
cerdelenandGitHub 42e3ab6e49 pr: implement the -e flag (#10167)
* pr: new functionality: expand-tabs + tests

pr: rebase

* pr: pipe test input instead of using files

* pr: parameterize tests
2026-02-14 10:10:43 -08:00
Jeffrey Finkelstein bfdbf59646 pr: use 72 char line width for all page headers
Set the default line width to 72 for all page headers in `pr`,
regardless of whether a custom date format is being used. Before, a
single space was used to separate the three components of the header
(date, filename, and page number) if a custom date format was not given.
2026-01-04 18:36:33 -05:00
Max Semenik 62fe68850e pr: Fixes after rebasing
Only the minimum needed to:
* Make everything compile without warnings
* Move files according to the new project structure
* Make tests pass
2021-03-26 17:57:19 +03:00
tilakpatidarandMax Semenik 75b35e6002 pr: remove not required tests 2021-03-26 14:11:15 +03:00
tilakpatidarandMax Semenik 054c05d5d8 pr: refactor get_lines_for_printing, write_columns, recreate_arguments
pr: extract recreate_arguments

pr: refactor get_line_for_printing

pr: refactor get_lines_for_printing

pr: refactor fetch_indexes generate for write_columns

pr: refactor write_columns

pr: refactor write_columns
2021-03-26 14:11:15 +03:00
tilakpatidarandMax Semenik 40e7f3d900 pr: add -J and -S option
pr: add -J option

pr: add -S option
2021-03-26 14:11:15 +03:00
tilakpatidarandMax Semenik a4b723233a pr: add more tests for form feed and include page_width option W 2021-03-26 14:11:15 +03:00
tilakpatidarandMax Semenik 3be5dc6923 pr: fix form feed
pr: fix form feed

pr: Rustfmt

pr: add test for ff and -l option
2021-03-26 14:11:15 +03:00
Tilak PatidarandMax Semenik 5956894d00 pr: add -m and -o option
pr: Add -o option
2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik dd07aed4d1 pr: add column separator option 2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik 69371ce3ce pr: add tests for --column with across option 2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik f497fb9d88 pr: read from stdin 2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik d9084a7399 pr: implement across option and fix tests 2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik f3676573b5 pr: print padded string for each column and handle tab issues
pr: Print fixed padded string for each column

pr: Fix display length vs str length due to tabs
2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik b578bb6563 pr: add test for -t -l -r option
pr: Add test for -l option

pr: Add test for -r suppress error option
2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik b742230dbb pr: fix page ranges
pr: Fix page ranges
2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik 88ec02a61c pr: add suport for -n [char][width] and -N
pr: Fix long name for -n

pr: Add -N first line number option

pr: Add -n[char][width] support
2021-03-26 14:11:14 +03:00
Tilak PatidarandMax Semenik afc58eb6ea pr: add tests for -n -h -d option
pr: Add test for -h option

pr: Add test for -d option
2021-03-26 14:11:14 +03:00
tilakpatidarandMax Semenik 629236bd39 pr: add first test 2021-03-26 14:11:14 +03:00