Name: PAD
Section:
String Operators
Synopsis:
<pad STRING TOTAL-SIZE [ALIGN=(RIGHT|LEFT|MIDDLE)] [TRUNCATE]>
Description:
Pads STRING to a length of TOTAL-SIZE. ALIGN can
be one of LEFT, MIDDLE, or
RIGHT (the default).
PAD inserts the correct number of spaces to make the
input argument take the desired number of spaces (presumably for use
in a <pre> ... </pre> statement).
The optional arg TRUNCATE says to force the string to be
the specified length.
Before any padding is done, leading and trailing whitespace is removed
from STRING.
Examples:
<pad "Hello" 10> --> " Hello"
<pad "Hello" 10 align=left> --> "Hello "
<pad "Hello" 10 align=middle> --> " Hello "
<pad " Heckle " 4 truncate> --> "Heck"
Edit Pointer
Function Index
Variable Index
Variable Editor

The
META-HTML
Reference Manual V1.4
Copyright © 1995, 1996,
Brian J. Fox,
1996, 1997 Universal Access Inc.
Found a bug? Send mail to
bug-manual@metahtml.com