7.7 #slurp

Syntax:

#slurp

The #slurp directive eats up the trailing newline on the line it appears in, joining the following line onto the current line.

It is particularly useful in #for loops:

#for $i in range(5)
$i #slurp
#end for
outputs:
0 1 2 3 4