Add support for newlines in paragraphs

Also fix a warning.