object.style.whiteSpace = "value";
<'white-space'> = normal | pre | nowrap | pre-wrap | break-spaces | pre-line
This value directs user agents to collapse sequences of white space into a single character.
This value prevents user agents from collapsing sequences of white space.
Like normal, this value collapses white space; but like pre, it does not allow wrapping.
Like pre, this value preserves white space; but like normal, it allows wrapping.
The behavior is identical to that of pre-wrap, except that: any sequence of preserved white space or other space separators always takes up space, including at the end of the line and a line breaking opportunity exists after every preserved white space character and after every other space separator.
Like normal, this value collapses consecutive white space characters and allows wrapping, but preserves segment breaks in the source as forced line breaks.