Preserve newlines in html related to issue #307

For preserve_newlines and max_preserve_newlines false or 0 isn't accepted as configuration. This PR allows both those scenarios.
Fixes #307