Better newline handling in text nodes, see #34