correctLastElement = ((org.apache.fop.fo.flow.Block)fobj)
.getCommonMarginBlock().spaceAfter.getSpace().isDiscard();
}
if (correctLastElement) {
// remove the wrong element
KnuthBox wrongBox = (KnuthBox) newList.removeLast();
// if the old sequence is box(h) penalty(inf) glue(x,y,z) box(0)
// (it cannot be parted and has some stretch or shrink)
// the wrong box is the first one, not the last one
LinkedList preserveList = new LinkedList();
if (wrongBox.getW() == 0) {