(wip) strategically inserts newlines where appropriate