pr.c (11763) | pr.c (19092) |
---|---|
1/*- 2 * Copyright (c) 1991 Keith Muller. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 1443 unchanged lines hidden (view full) --- 1452prtail(cnt, incomp) 1453 register int cnt; 1454 int incomp; 1455{ 1456 if (nohead) { 1457 /* 1458 * only pad with no headers when incomplete last line 1459 */ | 1/*- 2 * Copyright (c) 1991 Keith Muller. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 1443 unchanged lines hidden (view full) --- 1452prtail(cnt, incomp) 1453 register int cnt; 1454 int incomp; 1455{ 1456 if (nohead) { 1457 /* 1458 * only pad with no headers when incomplete last line 1459 */ |
1460 if (!incomp) 1461 return(0); 1462 if ((dspace && (putchar('\n') == EOF)) || 1463 (putchar('\n') == EOF)) { | 1460 if (incomp && 1461 ((dspace && (putchar('\n') == EOF)) || 1462 (putchar('\n') == EOF))) { |
1464 pfail(); 1465 return(1); 1466 } | 1463 pfail(); 1464 return(1); 1465 } |
1466 /* 1467 * but honor the formfeed request 1468 */ 1469 if (formfeed) { 1470 if (putchar('\f') == EOF) { 1471 pfail(); 1472 return(1); 1473 } 1474 } |
|
1467 return(0); 1468 } | 1475 return(0); 1476 } |
1469 | |
1470 /* 1471 * if double space output two \n 1472 */ 1473 if (dspace) 1474 cnt *= 2; 1475 1476 /* 1477 * if an odd number of lines per page, add an extra \n --- 326 unchanged lines hidden --- | 1477 /* 1478 * if double space output two \n 1479 */ 1480 if (dspace) 1481 cnt *= 2; 1482 1483 /* 1484 * if an odd number of lines per page, add an extra \n --- 326 unchanged lines hidden --- |