Remove empty lines after expanding element, fix #119