I'm pretty sure you actually don't need to remove any line breaks, slurp does it for you :)

https://github.com/duckduckgo/zeroclickinfo-spice/search?q=slurp&ref=cmdform