flatten out links - one line per link