From 36ce675bb4224a41adafd448f39020e70db14094 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Jul 2007 11:36:43 -0700 Subject: pr -F no longer suppresses the footer or the first two blank header lines Here's a patch along the lines of . It's a bit large since it changes the test cases to match the behavior, and the test cases' file names depend on the behavior! * NEWS: pr -F no longer suppresses the footer or the first two blank lines in the header. * doc/coreutils.texi (pr invocation): Likewise. Also, a too-short page length implies -t, not -T. * src/pr.c (lines_per_header, lines_per_footer): Now constants. (init_parameters): Don't try to change them. (print_header): Use the same header and footer format regardless of wither form feeds are being used. (usage): Adjust to above change when describing too-short page length. Too-short page length impliesy -t, not -T. * tests/pr/2-S_f-t_notab: Adjust to the fact that -F now affects only formfeed handling; it does not change the header. * tests/pr/2-Sf-t_notab: Likewise. ... * tests/pr/3-5l17f-t: Remove, since it's been renamed to another file whose name has a line count 7 larger, reflecting the new line count needed for this behavior. * tests/pr/3a3l8f-t: Likewise. ... * tests/pr/w72l24f-ll: Likewise. Signed-off-by: Jim Meyering --- tests/pr/nSml24-t-t-FF | 136 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 tests/pr/nSml24-t-t-FF (limited to 'tests/pr/nSml24-t-t-FF') diff --git a/tests/pr/nSml24-t-t-FF b/tests/pr/nSml24-t-t-FF new file mode 100644 index 000000000..e28b75445 --- /dev/null +++ b/tests/pr/nSml24-t-t-FF @@ -0,0 +1,136 @@ + + +-- Date/Time -- x Page 1 + + + 1.1 Test-INPUT: "Wit:--:1 Test-INPUT: "Wit:--:1 FF-Test: FF's in + 2.2 Options -b -3 [+:--:2 Options -b -3 [+:--:2 Options -b -3 / + 3.3 Options -a -3 [+:--:3 Options -a -3 [+:--:3 ---------------- + 4.4 Options [+:--:4 Options [+:--:4 3456789 123456789 + 5.5 :--:5 :--:5 3 Columns downwa + 6.6 ----------------:--:6 ----------------:--:6 FF-Arangements: + 7.7 3456789 123456789 :--:7 3456789 123456789 :--:7 text\f\f\n; text + 8.8 3 Columns downwa:--:8 3 Columns downwa:--:8 \f\f\n; \f\n\f\n + 9.9 With columns use:--:9 With columns use:--:9 + 10.10 without -f e.g.::--:10 without -f e.g.::--:10 zzzzzzzzzzzzzzzz + 11.1 with -f e.g. ::--:1 with -f e.g. ::--:1 + 12.2 :--:2 :--:2 + 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be + 14.14 456789 123456789 :--:14 456789 123456789 :--:14 456789 123456789 + + +-- Date/Time -- x Page 2 + + + 15.15 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX:--: + 16.16 456789 123456789 :--:16 456789 123456789 :--: + 17.7 :--:7 :--: + 18.8 :--:8 :--: + 19.9 3456789 ab :--:9 3456789 ab :--: + 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: + 21.1 :--:1 :--: + 22.2 :--:2 :--: + 23.3 :--:3 :--: + 24.4 :--:4 :--: + 25.5 :--:5 :--: + 26.6 :--:6 :--: + 27.27 no truncation bef:--:27 no truncation bef:--: + 28.28 no trunc :--:28 no trunc :--: + + +-- Date/Time -- x Page 3 + + + 29.29 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX + 30.30 456789 123456789 :--:30 456789 123456789 :--:16 456789 123456789 + 31.1 :--:1 :--:7 + 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi :--:8 + 33.3 :--:3 :--:9 3456789 ab + 34.4 :--:4 :--:20 DEFGHI 123 + 35.5 :--:5 :--:1 + 36.6 :--:6 :--:2 + 37.7 :--:7 :--:3 + 38.8 :--:8 :--:4 + 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi :--:5 + 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789 :--:6 + 41.41 yzxyzxyz XYZXYZXY:--:41 yzxyzxyz XYZXYZXY:--:27 no truncation bef + 42.42 456789 123456789 :--:42 456789 123456789 :--:28 no trunc + + +-- Date/Time -- x Page 4 + + + 43.43 xyzxyzxyz XYZXYZX:--:43 xyzxyzxyz XYZXYZX:--: + 44.44 456789 123456789 :--:44 456789 123456789 :--: + 45.5 :--:5 :--: + 46.6 :--:6 :--: + 47.7 :--:7 :--: + 48.8 :--:8 :--: + 49.9 :--:9 :--: + 50.50 :--:50 :--: + 51.1 :--:1 :--: + 52.2 :--:2 :--: + 53.3 :--:3 :--: + 54.4 :--:4 :--: + 55.55 yzxyzxyz XYZXYZXY:--:55 yzxyzxyz XYZXYZXY:--: + 56.56 456789 123456789 :--:56 456789 123456789 :--: + + +-- Date/Time -- x Page 5 + + + 57.57 xyzxyzxyz XYZXYZX:--:57 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX + 58.58 456789 123456789 :--:58 456789 123456789 :--:30 456789 123456789 + 59.9 :--:9 :--:1 + 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789 :--:2 3456789 abcdefghi + 61.1 :--:1 :--:3 + 62.2 :--:2 :--:4 + 63.3 ------- EOF -----:--:3 ------- EOF -----:--:5 + 64. :--: :--:6 + 65. :--: :--:7 + 66. :--: :--:8 + 67. :--: :--:9 3456789 abcdefghi + 68. :--: :--:40 DEFGHI 123456789 + 69. :--: :--:41 yzxyzxyz XYZXYZXY + 70. :--: :--:42 456789 123456789 + + +-- Date/Time -- x Page 6 + + + + + +-- Date/Time -- x Page 7 + + + + + +-- Date/Time -- x Page 8 + + + 71. :--: :--:43 xyzxyzxyz XYZXYZX + 72. :--: :--:44 456789 123456789 + 73. :--: :--:5 + 74. :--: :--:6 + 75. :--: :--:7 + 76. :--: :--:8 + 77. :--: :--:9 + 78. :--: :--:50 + 79. :--: :--:1 + 80. :--: :--:2 + 81. :--: :--:3 + 82. :--: :--:4 + 83. :--: :--:55 yzxyzxyz XYZXYZXY + 84. :--: :--:56 456789 123456789 + + +-- Date/Time -- x Page 9 + + + 85. :--: :--:57 xyzxyzxyz XYZXYZX + 86. :--: :--:58 456789 123456789 + 87. :--: :--:9 + 88. :--: :--:60 DEFGHI 123456789 + \ No newline at end of file -- cgit v1.2.3-54-g00ecf