mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fold: variable width tabs, guard treating tab as whitespace
Treat tab chars as advancing to the next tab stop rather than having a fixed 8-column width. Also treat tab as a whitespace split target only when splitting on word boundaries.
This commit is contained in:
parent
bd8b129d9a
commit
e5c61a28be
5 changed files with 114 additions and 4 deletions
11
tests/fixtures/fold/tab_stops.input
vendored
Normal file
11
tests/fixtures/fold/tab_stops.input
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
1
|
||||
12
|
||||
123
|
||||
1234
|
||||
12345
|
||||
123456
|
||||
1234567
|
||||
12345678
|
||||
123456781
|
||||
12345678 2
|
||||
12345678 2 4
|
Loading…
Add table
Add a link
Reference in a new issue