setRetainSpaceReturn

Class: ModelAdvisor.Text
Package: ModelAdvisor

Retain spacing and returns in text

Syntax

setRetainSpaceReturn(text, mode)

Description

setRetainSpaceReturn(text, mode) specifies whether the text must retain the spaces and carriage returns.

Input Arguments

text

Instantiation of the ModelAdvisor.Text class

mode

A Boolean value indicating whether to preserve spaces and carriage returns in the text:

  • true (default) — Preserve spaces and carriage returns.

  • false — Do not preserve spaces and carriage returns.

Examples

t1 = ModelAdvisor.Text('MathWorks home page');
setRetainSpaceReturn(t1, 'true');
Was this topic helpful?