See this comment for an explanation.
I think this issue comes from a single-character typo though :-). The solution in #333 mentions that newlines should be replaced with space characters. However, the actual implementation for the fix in 28ec781 replaces them with an empty string instead.