Compact list rendering

Do not add empty lines between elements of the same list.