Turn newline characters into br tags in HTML, except in pre

This patch runs nl2br over the HTML returned in Text and StructuredText's to
HTML methods, except in preformatted text.

Tests are included (the search fixture had to be changed and some unrelated
tests tweaked to accommodate those changes).