diff options
author | Jim Meyering <meyering@redhat.com> | 2009-03-06 20:03:26 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-07 23:52:08 +0100 |
commit | a4053c5291d5797734b3e4f042f9e1adf3944fd6 (patch) | |
tree | c9d69875fa146021d6dfbfab798a4460c9701477 /tests/pr/o3mSnl24fbltn | |
parent | 85507b24f9531b20c339acbf6c215c84e74b6860 (diff) | |
download | coreutils-a4053c5291d5797734b3e4f042f9e1adf3944fd6.tar.xz |
pr: fix a bug whereby --indent=N (-o) did not indent header lines
* 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.
Diffstat (limited to 'tests/pr/o3mSnl24fbltn')
-rw-r--r-- | tests/pr/o3mSnl24fbltn | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/pr/o3mSnl24fbltn b/tests/pr/o3mSnl24fbltn index 7243641b1..655b56f65 100644 --- a/tests/pr/o3mSnl24fbltn +++ b/tests/pr/o3mSnl24fbltn @@ -1,6 +1,6 @@ --- Date/Time -- x Page 1 + -- Date/Time -- x Page 1 1.1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set @@ -19,7 +19,7 @@ 14.14 456789 123456789 123456789 1:--:14 456789 123456789 123456789 1 --- Date/Time -- x Page 2 + -- Date/Time -- x Page 2 15. :--:15 xyzxyzxyz XYZXYZXYZ abcabcab @@ -38,7 +38,7 @@ 28. :--:28 no trunc --- Date/Time -- x Page 3 + -- Date/Time -- x Page 3 29.15 xyzxyzxyz XYZXYZXYZ abcabcab:--:29 xyzxyzxyz XYZXYZXYZ abcabcab @@ -57,7 +57,7 @@ 42. :--:42 456789 123456789 abcdefghi A --- Date/Time -- x Page 4 + -- Date/Time -- x Page 4 43. :--:43 xyzxyzxyz XYZXYZXYZ abcabcab @@ -76,7 +76,7 @@ 56. :--:56 456789 123456789 abcdefghi A --- Date/Time -- x Page 5 + -- Date/Time -- x Page 5 57.29 xyzxyzxyz XYZXYZXYZ abcabcab:--:57 xyzxyzxyz XYZXYZXYZ abcabcab @@ -95,19 +95,19 @@ 70.42 456789 123456789 abcdefghi A --- Date/Time -- x Page 6 + -- Date/Time -- x Page 6 --- Date/Time -- x Page 7 + -- Date/Time -- x Page 7 --- Date/Time -- x Page 8 + -- Date/Time -- x Page 8 71.43 xyzxyzxyz XYZXYZXYZ abcabcab:--: @@ -126,7 +126,7 @@ 84.56 456789 123456789 abcdefghi A --- Date/Time -- x Page 9 + -- Date/Time -- x Page 9 85. :--: @@ -145,7 +145,7 @@ 98.70 456789 123456789 abcdefghi :--: --- Date/Time -- x Page 10 + -- Date/Time -- x Page 10 99.1 :--: |