> > Under what circumstances would a diversion that ends on the > > bottom line of a page spring a footer trap even when the > > diversion has been chopped? > > As usual, please provide a small snippet which demonstrates > the problematic behaviour.
It might be related to outputting the diversion in no-fill mode, which behaves somewhat as if there were a ".br" at the end. Try the following, and uncomment either the ".nf" or the ".br": .\" This is for A4 paper. .\" ---------------------------------------------------------------- .wh 0 HD .wh -2c FT .pl 29.7c .po 2.5c .ll 16c .\" ---------------------------------------------------------------- .de HD .ev 1 .lt 16c .sp |1c-1v .tl ''page % header'' .sp |2c .ev .. .de FT .ev 1 .sp |29.7c-1c-1v .tl ''page % footer'' .bp .ev .. .\" ---------------------------------------------------------------- .de XX ps: def /cm { 72 mul 2.54 div } def /BPhook { gsave 1 .9 .9 setrgbcolor 0 27.7 cm 21 cm 2 cm rectfill .9 1 .9 setrgbcolor 0 2 cm 21 cm 25.7 cm rectfill .9 .9 1 setrgbcolor 0 0 cm 21 cm 2 cm rectfill grestore } def .. .\" ---------------------------------------------------------------- \Y[XX]\c .di xx Hello, .br \!.sp 24.9c world. .br .di .\" .nf .xx .\" .br .\" ---------------------------------------------------------------- .\" This is the end. Don't let blank lines creep in here.