default wrap for paragraphs includes a newline
factored out determination of whether a paragraph is a header in a separate function [#2147]