From: Michael Smith Date: Fri, 8 Jul 2005 10:35:55 +0000 (+0000) Subject: Added prepend-pad function for right-padding strings to a specific X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff24f0fce5f4ffb6210d57fbeacc30a05099bb0e;p=docbook-dsssl Added prepend-pad function for right-padding strings to a specific length. --- diff --git a/xsl/lib/lib.xweb b/xsl/lib/lib.xweb index 8a0c4adcf..dc7db7021 100644 --- a/xsl/lib/lib.xweb +++ b/xsl/lib/lib.xweb @@ -632,6 +632,57 @@ by comment-escape-string. + + +prepend-pad +Right-pad a string out to a certain length + + +Description + +This function takes string padVar and +pads it out to the string-length length, using +string padChar (a space character by default) +as the padding string (note that padChar can be +a string; it is not limited to just being a single character). + + + This function is a copy of Nate Austin's + prepend-pad function in the Padding + Content section of Dave Pawson's XSLT + FAQ. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + str.tokenize.keep.delimiters @@ -1107,6 +1158,7 @@ around these functions. +