Fix list end

previously, ending a list by pressing return twice would result in a new paragraph at the bottom of the div, even if the list was in the middle of the div.