diff options
author | Eric Blake <ebb9@byu.net> | 2010-01-06 20:57:40 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2010-01-06 21:07:23 -0700 |
commit | 67d3e263504115144380dfaffd41c9cef3cf68a4 (patch) | |
tree | 5cf755723247f15a892bdaf54227e3833c9ebfbd /tests/pr | |
parent | 72a0a8264d1eeacfc92231e71d75d2eb7ee3e08f (diff) | |
download | coreutils-67d3e263504115144380dfaffd41c9cef3cf68a4.tar.xz |
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 a4053c5291d5797734b3e4f042f9e1adf3944fd6
* 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.
Diffstat (limited to 'tests/pr')
-rw-r--r-- | tests/pr/W20l24f-ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/pr/W20l24f-ll b/tests/pr/W20l24f-ll index 92d08afe4..ecc9a7afc 100644 --- a/tests/pr/W20l24f-ll +++ b/tests/pr/W20l24f-ll @@ -1,6 +1,6 @@ --- Date/Time --xPage 1 +-- Date/Time -- x Page 1 1<<< -Test: FF's in @@ -19,13 +19,13 @@ 14<<< 123456789 123 --- Date/Time --xPage 2 +-- Date/Time -- x Page 2 --- Date/Time --xPage 3 +-- Date/Time -- x Page 3 15<<< xyzxyzxyz XYZ @@ -44,13 +44,13 @@ 28<<< trunc --- Date/Time --xPage 4 +-- Date/Time -- x Page 4 --- Date/Time --xPage 5 +-- Date/Time -- x Page 5 29<<<xyzxyzxyz XYZXY @@ -69,19 +69,19 @@ 42<<< 123456789 abc --- Date/Time --xPage 6 +-- Date/Time -- x Page 6 --- Date/Time --xPage 7 +-- Date/Time -- x Page 7 --- Date/Time --xPage 8 +-- Date/Time -- x Page 8 43<<< xyzxyzxyz XYZ @@ -100,7 +100,7 @@ 56<<< 123456789 abc --- Date/Time --xPage 9 +-- Date/Time -- x Page 9 57<<< xyzxyzxyz XYZ |