User`s guide

mlreportgen.dom.Text class
12-333
Border String Description Supported Output Types
pre Preserves white space. Text
wraps only on line breaks.
Acts like the <pre> tag in
HTML.
HTML
pre-line Sequences of white space
collapse into a single white
space. Text wraps.
HTML
pre-wrap Preserves white space. Text
wraps when necessary and
on line breaks
HTML
If you want to view HTML output in the MATLAB browser and you want to preserve
white space and wrap text only on line breaks, use the preserve setting rather than the
pre setting.
Setting the WhiteSpace property adds a corresponding WhiteSpace format object to
Style property. Removing the WhiteSpace property setting removes the WhiteSpace
object.
Methods
Use the Text.append and Text.clone methods the same way you use the
Paragraph.append and Paragraph.clone methods.
Method Purpose
append Append a custom element to this text
object.
clone Clone this text object
See Also
mlreportgen.dom.CharEntity | mlreportgen.dom.CustomText |
mlreportgen.dom.Paragraph
Related Examples
“Add Content to a Report”