1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00
When you ask pr to use form feeds at the end of pages and specify a page
length and tell pr to not put the fancy headers and footers on each
pages, then pr will not separate the pages with a form feed.

Closes PR: bin/1237

Submitted by: Warner Losh <imp@village.org>
This commit is contained in:
Marc G. Fournier 1996-10-22 05:02:01 +00:00
parent b87efe4572
commit ebcf24fb2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19092

View File

@ -1457,16 +1457,23 @@ prtail(cnt, incomp)
/*
* only pad with no headers when incomplete last line
*/
if (!incomp)
return(0);
if ((dspace && (putchar('\n') == EOF)) ||
(putchar('\n') == EOF)) {
if (incomp &&
((dspace && (putchar('\n') == EOF)) ||
(putchar('\n') == EOF))) {
pfail();
return(1);
}
/*
* but honor the formfeed request
*/
if (formfeed) {
if (putchar('\f') == EOF) {
pfail();
return(1);
}
}
return(0);
}
/*
* if double space output two \n
*/