Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

If you want to use white spaces like tabs, new lines, or carriage returns in a string, use the text() macro.

Syntax


Code Block
languagenone
aWhitespaceString = text(LITERAL);


Semantics

Transforms all escaped white spaces found in a string literal to a real white space. The text macro takes only string literals as parameter. Returns a new string. Only the following white spaces are supported:

  • \n     new line
  • \r      carriage return
  • \t      tab
SubstitutablesLITERAL String literal. 
Examples

The literal contains the escaped white space \n, which is transformed to a real line break.

Code Block
languagenone
set whitespaceString = text("First line.\nSecond line."); 


Multiexcerpt include
MultiExcerptNamestring
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE