Only remove trailing new-lines

Make sure `RemoveTrailingLineBreaks` doesn’t remove line breaks that has
text-nodes as its next sibling