User`s guide
12 Classes – Alphabetical List
12-352
String specifying the white space type.
String Description
'preserve' Preserves white space and line breaks.
This is the only option that works in Microsoft Word and in
the MATLAB browser.
'normal' Sequences of white spaces collapse into a single white space.
Text wraps when necessary.
This is default.
'nowrap' Sequences of white spaces collapse into a single white space.
Text does not wrap to the next line. The text continues on the
same line until a <br /> tag is encountered.
'pre' White space is preserved by the browser. Text wraps only on
line breaks. Acts like the <pre> tag in HTML.
'pre-line' Sequences of white spaces collapses into a single white space.
Text wraps when necessary and on line breaks.
'pre-wrap' White space is preserved by the browser. Text wraps when
necessary and on line breaks.
Examples
Include White Space Between Titles
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph('Chapter ');
p.Style = { CounterInc('chapter'),WhiteSpace('preserve') };
append(p, AutoNumber('chapter'));
append(d, p);
p = Paragraph('Chapter ');
p.Style = { CounterInc('chapter'),WhiteSpace('preserve') };
append(p,AutoNumber('chapter'));
append(d,p);