Files
coreutils/tests/pr/W20l24f-ll
T
Eric Blake 67d3e26350 pr: ensure the page header line is of the required format
Before this change, with too long a file name, the name would
abut the date field on the left and possibly also the "Page N"
field on the right, rather than leaving a one-space separator
in each case.  Fixes a regression introduced on Mar 6 2009,
by commit a4053c5291

* src/pr.c (print_header): Ensure that there is at least one
space before and after the file name part of the header line.
* NEWS: Mention it.
* tests/pr/W20l24f-ll: s/xPage/ x Page/.
* THANKS: Update.
Reported by Denis McKeon, in https://savannah.gnu.org/bugs/?28492.
2010-01-06 21:07:23 -07:00

110 lines
1.1 KiB
Plaintext

-- Date/Time -- x Page 1
1<<< -Test: FF's in
2<<< -b -3 / -a -3
3<<< >>>
4<<< 123456789 1234
6<<< -Arangements:
7<<< \f\f\n; text\f
8<<< f\f\n; \f\n\f\
9<<< >>>
10<<< >>>
1<<< >>>
2<<< >>>
3<<< truncation bef
14<<< 123456789 123
-- Date/Time -- x Page 2
-- Date/Time -- x Page 3
15<<< xyzxyzxyz XYZ
16<<< 123456789 xyz
7<<< >>>
8<<< >>>
9<<< >>>
20<<< >>>
1<<< >>>
4<<< >>>
5<<< >>>
6<<< >>>
27<<< truncation be
28<<< trunc
-- Date/Time -- x Page 4
-- Date/Time -- x Page 5
29<<<xyzxyzxyz XYZXY
30<<< 123456789 xyz
1<<< >>>
2<<< abcdefghi >>>
3<<< >>>
4<<< >>>
5<<< >>>
6<<< >>>
7<<< >>>
8<<< >>>
9<<< abcdefghi >>>
40<<< 123456789 >>
41<<< XYZXYZXYZ abc
42<<< 123456789 abc
-- Date/Time -- x Page 6
-- Date/Time -- x Page 7
-- Date/Time -- x Page 8
43<<< xyzxyzxyz XYZ
44<<< 123456789 xyz
5<<< >>>
6<<< >>>
7<<< >>>
8<<< >>>
9<<< >>>
50<<< >>>
1<<< >>>
2<<< >>>
3<<< >>>
4<<< >>>
55<<< XYZXYZXYZ abc
56<<< 123456789 abc
-- Date/Time -- x Page 9
57<<< xyzxyzxyz XYZ
58<<< 123456789 xyz
9<<< >>>
60<<< 123456789 >>