protected function indent($str, $levels = 1) { if ($levels > 1) { $str = $this->indent($str, $levels - 1); } return str_replace("\n", "\n ", $str); }