Only remove trailing new-lines

Make sure `RemoveTrailingLineBreaks` doesn’t remove line breaks that has
text-nodes as its next sibling
Merge pull request #76 from metalabdesign/fix_aggressive_line_break_removal

Only remove trailing new-lines