fix bug in layout: newline before links in some streams