Pádraig Brady
65a0483fb5
unexpand: fix misalignment when spaces span a tabstop
...
The following dropped the space from the first field
printf "1234567 \t1\n" | unexpand -a
Note POSIX says that spaces should not precede tabs.
Also a single trailing space should not be converted
if the next field starts with non blank characters.
So we enforce those rules too, with this change.
* src/unexpand.c (unexpand): Implement as per POSIX rules.
* tests/misc/unexpand: Add tests, and adjust existing
tests as per POSIX rules.
* NEWS: Mention the fix.
Reported by Hallvard B Furuseth
2011-07-20 10:38:46 +01:00
..
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:41:29 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-02-07 09:25:51 +01:00
2011-01-01 22:16:47 +01:00
2011-04-28 22:43:56 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-04-04 18:21:32 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-29 23:39:16 +00:00
2011-04-28 22:43:56 +02:00
2011-01-01 22:16:47 +01:00
2011-07-07 16:42:47 +02:00
2011-04-28 22:43:56 +02:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:41:29 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-05-18 07:33:04 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:41:29 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-04-28 22:43:56 +02:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-05-14 10:30:12 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-06-18 08:34:07 +02:00
2011-05-06 08:07:46 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-06-19 09:16:20 +02:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-03-22 07:13:59 +01:00
2011-01-01 22:16:47 +01:00
2011-07-17 12:52:55 -07:00
2011-07-08 13:54:08 +01:00
2011-07-16 12:10:45 -07:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-04-28 22:43:56 +02:00
2011-07-20 10:38:46 +01:00
2011-04-28 22:43:56 +02:00
2011-01-17 19:07:58 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-06-17 09:17:37 +02:00
2011-01-01 22:16:47 +01:00