Ulrich -- I'm CC'ing this to the list again because your server is still returning my emails with a singularly unhelpful 554 error.
On Thu, Dec 09, 2021, Ulrich Lauther wrote: > if I process this input: > > .PAPER A4 > .B_MARGIN 1.5c > .AUTOLEAD 2 > .PT_SIZE 16 > .LEFT > line_1 > line_2 > > .NEWPAGE > > line3 > line4 > > with mom, I get 3 pages of output, one empty. > > Without .B_MARGIN, I get two pages, as expected. > > Is this a bug, a feature, or my fault ? It's a bug. I have a few other small bugs to deal with, so I'll wrap this up with them when I commit the changes and put the bugfix release on the mom website, which should be within a day or two. Meantime, you can replace the NEWPAGE macro definition with the one below, either by updating your om.tmac or by putting the definition in a file and adding .rm NEWPAGE .so <file> to the top of your file. .MAC NEWPAGE END . br . if \\n[#DOC_TYPE]=5 \{\ . if \\n[#NUM_ARGS]>0 \ . pdftransition PAGE \\$1 . \} . if !\\n[defer] \{\ . nr #NEWPAGE 1 . rr tbl*no-print-header . \} . ie !\\n[#DOCS]=1 \ . if \\n[#B_MARGIN_SET]=1 .DO_B_MARGIN . el \{\ . if \\n[#COLUMNS]=1 .nr #COL_NUM \\n[#NUM_COLS] . if !\\n[#FN_DEPTH] \{\ . ch FN_OVERFLOW_TRAP . nr #RESET_FN_OVERFLOW_TRAP 1 . \} . \} . if dPDF.EXPORT \ . if \\n[#FLEX_ACTIVE] \ . if !\\n[#NO_FLEX] \ . tm .ds pre-newpage-\\n% \\n%@\\n[#COL_NUM] . ie \\n[#DOCS]=1 \{\ . if (\\n[@TOP]=0):(\\n[#END_COVER]=1) .bp . rr #END_COVER . if \\n[#RESET_FN_OVERFLOW_TRAP] \{\ . wh -\\n[#FN_OVERFLOW_TRAP_POS]u FN_OVERFLOW_TRAP . rr #RESET_FN_OVERFLOW_TRAP_POS . \} . \} . el .if !\\n[#B_MARGIN_SET]=1 .bp .END -- Peter Schaffter https://www.schaffter.ca