protected function indent($str, $output = true)
{
if ($this->parser->isStartTag) {
$this->indent .= $str;
if ($output) {
$this->out($str, true);
}
} else {
$this->indent = substr($this->indent, 0, -strlen($str));
}
}