Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | DSPs and building output templates | Using Output Templates to Format Service Output | %nl%
 
%nl%
You use the %nl% tag to generate a new line character in the code. The tag is useful when you want to preserve the ending of a line that ends in a tag. If you do not explicitly insert a %nl% tag on such lines, the server drops the new line character following that tag. (Note that this tag does not insert the HTML line break <BR> code. It merely inserts a line break character, which is treated as white space.) The main reason you use this tag is to preserve the format of the underlying code in a DSP, which can make it easier to read during debugging.
Syntax
%nl%
Effect on Scope
None
Examples
The following example shows how the %nl% tag is used to preserve the line endings on lines occupied by the three %value% tags. If the %nl% tag did not appear in this code, the three lines would be concatenated in the HTML document generated by the server.
.
.
.
<hr>
<p>Shipping Info:
%value carrier%%nl%
%value serviceLevel%%nl%
%value arrivalDate%%nl%</p>
<hr>
.
.
.