From a4053c5291d5797734b3e4f042f9e1adf3944fd6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 6 Mar 2009 20:03:26 +0100 Subject: 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. --- tests/pr/o3a3Snl24f-tn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/pr/o3a3Snl24f-tn') diff --git a/tests/pr/o3a3Snl24f-tn b/tests/pr/o3a3Snl24f-tn index 2560cec2d..5a8f2636b 100644 --- a/tests/pr/o3a3Snl24f-tn +++ b/tests/pr/o3a3Snl24f-tn @@ -1,6 +1,6 @@ --- Date/Time -- x Page 1 + -- Date/Time -- x Page 1 1.1 Test-INPUT::--: 2.2 Options -b :--: 3.3 Options -a @@ -19,7 +19,7 @@ 40.40 DEFGHI 12345:--: 41.41 yzxyzxyz XYZ:--: 42.42 456789 12345 --- Date/Time -- x Page 2 + -- Date/Time -- x Page 2 43.43 xyzxyzxyz XY:--: 44.44 456789 12345:--: 45.5 -- cgit v1.2.3-70-g09d2