OpenWGA 7.6 - WebTML reference

WebTML tags » [All tags]

<tml:[All tags] trim ="true | false | 0 | 1 | t | f">

Purpose:

Removes leading and trailing whitespace from the tag output

Description:

Invisible characters that merely provide formattings, like spaces, carriage returns and tabs, are regarded "whitespace".

This attribute is only effective on output. Therefor it has no effect if output is supressed, like when storing a WebTML variable.

Default value:

false

Examples:

Some WebTML code with a range, containing whitespace before and after the text:
#<tml:range trim="true">

This is a text with much whitespace

</tml:range>#


The following output is produced because of trim="true":

#This is a text with much whitespace#

Whitespace before and after the text is removed (therefor the hash signs directly enclose the text). But whitespace inside the text remains untouched.