Add an option to configure whitespace

I wanted to break at newlines, not just HTML breaks.  This permits that by allowing whiteSpace: "pre" in the options.  Default behaviour is unchanged.