mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57: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
18
tests/fixtures/fold/tab_stops_w8.expected
vendored
Normal file
18
tests/fixtures/fold/tab_stops_w8.expected
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
1
|
||||
12
|
||||
123
|
||||
1234
|
||||
12345
|
||||
123456
|
||||
1234567
|
||||
12345678
|
||||
|
||||
12345678
|
||||
1
|
||||
12345678
|
||||
|
||||
2
|
||||
12345678
|
||||
|
||||
2
|
||||
4
|
Loading…
Add table
Add a link
Reference in a new issue