add blank lines where no leafs exist