Fix addition of exessive line breaks when adding and removing lists