preserve-all-blank"
From Documentation
(Created page with " {{ZKConfigurationReferencePageHeader}} '''Property:''' preserve-all-blank {{GlobalLibraryProperty}} Default: true [Since 8.0.0] This property control how the zul parser in...") |
|||
Line 10: | Line 10: | ||
This property control how the zul parser interpret whitespaces (such as line breaks and spaces) between zul elements. | This property control how the zul parser interpret whitespaces (such as line breaks and spaces) between zul elements. | ||
+ | |||
Considering this source: | Considering this source: | ||
+ | |||
<source lang="xml"> | <source lang="xml"> | ||
<label value="text" /> | <label value="text" /> | ||
<a>link</a> | <a>link</a> | ||
</source> | </source> | ||
+ | |||
If preserve-all-blank is true, the result will be: | If preserve-all-blank is true, the result will be: | ||
+ | |||
text link | text link | ||
+ | |||
+ | |||
If preserve-all-blank is false, the result will be: | If preserve-all-blank is false, the result will be: | ||
+ | |||
textlink | textlink | ||
+ | |||
Note: the same element will not cause whitespace if no whitespace exists in the source. | Note: the same element will not cause whitespace if no whitespace exists in the source. | ||
+ | |||
Considering the following source: | Considering the following source: | ||
+ | |||
<source lang="xml"> | <source lang="xml"> | ||
<label value="text" /><a>link</a> | <label value="text" /><a>link</a> | ||
</source> | </source> | ||
+ | |||
will always return: textlink, since no whitespace exists between the label and the link element. | will always return: textlink, since no whitespace exists between the label and the link element. | ||
+ | |||
<source lang="xml"> | <source lang="xml"> |
Latest revision as of 08:41, 30 January 2020
Property: preserve-all-blank
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: true [Since 8.0.0]
This property control how the zul parser interpret whitespaces (such as line breaks and spaces) between zul elements.
Considering this source:
<label value="text" />
<a>link</a>
If preserve-all-blank is true, the result will be:
text link
If preserve-all-blank is false, the result will be:
textlink
Note: the same element will not cause whitespace if no whitespace exists in the source.
Considering the following source:
<label value="text" /><a>link</a>
will always return: textlink, since no whitespace exists between the label and the link element.
<library-property>
<name>preserve-all-blank</name>
<value>false</value>
</library-property>