You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Corneil du Plessis <co...@mweb.co.za> on 2002/01/24 10:13:26 UTC

Output padding

I am using velocity and DVSL to generate code from a populated meta-model
and was if the following was possible?
I want to generate dynamic spacing to line elements in the code and exmaple
would be

#foreach( $field in $fieldlist )
	$field.attrib("type") $field.attrib("name") #tab(36) =
$field.attrib("default");
#end

This would mean that unless the output line position is past 36 spaces would
be generated until the output position is 36.

It is only for indentation purposes but may be useful when the output
language is something like Python.

Corneil du Plessis
(h) +27 (11) 918-1592
(w) +27 (82) 802-5768



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>