0) $GLOBAL_html_indent_level--; HTMLFORMAT_indent_echo(); echo $arg; } //-------------------------------------------------------------------------------- //Decreases the indent level by one, then echoes a string with the correct //indent level applied and a newline. This is suitable for tags that end a //container. // function HTMLFORMAT_echo_pull_nl($arg) { global $GLOBAL_html_indent_level; if ($GLOBAL_html_indent_level > 0) $GLOBAL_html_indent_level--; HTMLFORMAT_indent_echo(); echo $arg; echo "\n"; } //-------------------------------------------------------------------------------- //Provides a string containing exactly the number of spaces appropriate for the //indent level. // function HTMLFORMAT_indent_string() { global $GLOBAL_html_indent_level; return( SubStr(HTMLFORMAT_SPACE_STRING, 0, $GLOBAL_html_indent_level * HTMLFORMAT_SPACES_PER_INDENT_LEVEL) ); } //-------------------------------------------------------------------------------- //Increases the indent level by one. // function HTMLFORMAT_indent_push() { global $GLOBAL_html_indent_level; $GLOBAL_html_indent_level++; } //-------------------------------------------------------------------------------- //Decreases the indent level by one, but not below zero. // function HTMLFORMAT_indent_pop() { global $GLOBAL_html_indent_level; if ($GLOBAL_html_indent_level > 0) $GLOBAL_html_indent_level--; } // //-------------------------------------------------------------------------------- //End of $RCSfile: htmlformat.inc,v $. //-------------------------------------------------------------------------------- ?>