dev.golang_filter: handle ad-hoc closures at the end of other blocks
dev.golang_filter: don't produce extra newlines after closures