pr: fix a bug whereby --indent=N (-o) did not indent header lines
authorJim Meyering <meyering@redhat.com>
Fri, 6 Mar 2009 19:03:26 +0000 (20:03 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Mar 2009 22:52:08 +0000 (23:52 +0100)
commita4053c5291d5797734b3e4f042f9e1adf3944fd6
treec9d69875fa146021d6dfbfab798a4460c9701477
parent85507b24f9531b20c339acbf6c215c84e74b6860
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.
14 files changed:
NEWS
THANKS
src/pr.c
tests/pr/W20l24f-ll
tests/pr/o3Jml24f-lm-lo
tests/pr/o3a3Sl24f-tn
tests/pr/o3a3Snl24f-tn
tests/pr/o3a3l24f-tn
tests/pr/o3b3Sl24f-tn
tests/pr/o3b3Snl24f-tn
tests/pr/o3b3l24f-tn
tests/pr/o3mSl24f-bl-tn
tests/pr/o3mSnl24fbltn
tests/pr/o3ml24f-bl-tn