mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-28 12:35:36 +08:00
a4053c5291
* src/pr.c (print_header): Honor chars_per_margin also for the header. Inspired by a patch from C de-Avillez. This change also adjusts two other %*s directives to be %*.*s instead, (for the padding on either side of "file_text") to correct a bug that could make pr print one space of padding instead of none. * NEWS (Bug fixes): Mention it. * tests/pr/o3Jml24f-lm-lo: Adjust for new expected output. * tests/pr/o3a3Sl24f-tn: Likewise. * tests/pr/o3a3Snl24f-tn: Likewise. * tests/pr/o3a3l24f-tn: Likewise. * tests/pr/o3b3Sl24f-tn: Likewise. * tests/pr/o3b3Snl24f-tn: Likewise. * tests/pr/o3b3l24f-tn: Likewise. * tests/pr/o3mSl24f-bl-tn: Likewise. * tests/pr/o3mSnl24fbltn: Likewise. * tests/pr/o3ml24f-bl-tn: Likewise.
157 lines
4.3 KiB
Plaintext
157 lines
4.3 KiB
Plaintext
|
||
|
||
-- Date/Time -- x Page 1
|
||
|
||
|
||
1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set by
|
||
2 Options -n; :--:2 Options -b -3 [+2|+3] [-l 15|8
|
||
3 numbering lines with skiped pa:--:3 Options -a -3 [+2|+3] [-l 15|8
|
||
4 numbering blanc lines (no. 5,1:--:4 Options [+2|+3] [-l 24|1
|
||
:--:5
|
||
6 3456789 123456789 123456789 1234:--:6 ------------------------------
|
||
7 3 Columns downwards ..., <= 5 :--:7 3456789 123456789 123456789 1234
|
||
8 :--:8 3 Columns downwards, across, .
|
||
9 :--:9 With columns use <= 5 text li
|
||
10 zzzzzzzzzzzzzzzzzzzzzzzzzz1234:--:10 without -f e.g.: -l 15 = tota
|
||
1 :--:1 with -f e.g. : -l 8 -f
|
||
:--:2
|
||
:--:3 line truncation before new page;
|
||
14 456789 123456789 123456789 1234:--:14 456789 123456789 123456789 1234
|
||
|
||
|
||
-- Date/Time -- x Page 2
|
||
|
||
|
||
:--:15 xyzxyzxyz XYZXYZXYZ abcabcab
|
||
:--:16 456789 123456789 xyzxyzxyz XYZX
|
||
:--:7
|
||
:--:8
|
||
:--:9 3456789 ab
|
||
:--:20 DEFGHI 123
|
||
:--:1
|
||
:--:2
|
||
:--:3
|
||
:--:4
|
||
:--:5
|
||
:--:6
|
||
:--:27 no truncation before nwe page;
|
||
:--:28 no trunc
|
||
|
||
|
||
-- Date/Time -- x Page 3
|
||
|
||
|
||
15 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
|
||
16 456789 123456789 xyzxyzxyz XYZX:--:30 456789 123456789 xyzxyzxyz XYZX
|
||
7 :--:1
|
||
8 :--:2 3456789 abcdefghi
|
||
9 3456789 ab :--:3
|
||
20 DEFGHI 123 :--:4
|
||
1 :--:5
|
||
:--:6
|
||
:--:7
|
||
4 :--:8
|
||
5 :--:9 3456789 abcdefghi
|
||
6 :--:40 DEFGHI 123456789
|
||
27 no truncation before FF; (r_l-t:--:41 yzxyzxyz XYZXYZXYZ abcabcab
|
||
:--:42 456789 123456789 abcdefghi ABCD
|
||
|
||
|
||
-- Date/Time -- x Page 4
|
||
|
||
|
||
:--:43 xyzxyzxyz XYZXYZXYZ abcabcab
|
||
:--:44 456789 123456789 xyzxyzxyz XYZX
|
||
:--:5
|
||
:--:6
|
||
:--:7
|
||
:--:8
|
||
:--:9
|
||
:--:50
|
||
:--:1
|
||
:--:2
|
||
:--:3
|
||
:--:4
|
||
:--:55 yzxyzxyz XYZXYZXYZ abcabcab
|
||
:--:56 456789 123456789 abcdefghi ABCD
|
||
|
||
|
||
-- Date/Time -- x Page 5
|
||
|
||
|
||
29 xyzxyzxyz XYZXYZXYZ abcabcab :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
|
||
30 456789 123456789 xyzxyzxyz XYZX:--:58 456789 123456789 xyzxyzxyz XYZX
|
||
1 :--:9
|
||
2 3456789 abcdefghi :--:60 DEFGHI 123456789
|
||
3 :--:1
|
||
4 :--:2
|
||
:--:3 ------- EOF -------- EOF ------
|
||
6 :--:
|
||
7 :--:
|
||
8 :--:
|
||
9 3456789 abcdefghi :--:
|
||
40 DEFGHI 123456789 :--:
|
||
41 yzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
42 456789 123456789 abcdefghi ABCD
|
||
|
||
|
||
-- Date/Time -- x Page 6
|
||
|
||
|
||
|
||
|
||
|
||
-- Date/Time -- x Page 7
|
||
|
||
|
||
|
||
|
||
|
||
-- Date/Time -- x Page 8
|
||
|
||
|
||
43 xyzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
44 456789 123456789 xyzxyzxyz XYZX:--:
|
||
5 :--:
|
||
6 :--:
|
||
7 :--:
|
||
8 :--:
|
||
9 :--:
|
||
50 :--:
|
||
1 :--:
|
||
:--:
|
||
:--:
|
||
:--:
|
||
55 yzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
56 456789 123456789 abcdefghi ABCD
|
||
|
||
|
||
-- Date/Time -- x Page 9
|
||
|
||
|
||
:--:
|
||
58 456789 123456789 xyzxyzxyz XYZX:--:
|
||
9 :--:
|
||
60 DEFGHI 123456789 :--:
|
||
61 yzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
62 456789 123456789 abcdefghi ABCD:--:
|
||
63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
64 456789 123456789 xyzxyzxyz XYZX:--:
|
||
5 :--:
|
||
6 :--:
|
||
7 :--:
|
||
8 :--:
|
||
9 :--:
|
||
70 456789 123456789 abcdefghi ABC:--:
|
||
|
||
|
||
-- Date/Time -- x Page 10
|
||
|
||
|
||
1 :--:
|
||
:--:
|
||
:--:
|
||
:--:
|
||
74 yzxyzxyz XYZXYZXYZ abcabcab :--:
|
||
75 456789 123456789 abcdefghi ABCD
|
||
|