From 0a96d92de2b9da61ffef430436c120ab7e17b4f3 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 13 Oct 2008 11:58:32 +0000 Subject: provide source line as title --- it_html.class | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/it_html.class b/it_html.class index 0d137c9..38dae0a 100644 --- a/it_html.class +++ b/it_html.class @@ -258,7 +258,11 @@ function _tag($name, $args) if ($this->p['prettyprint'] && $newline && (substr($data, -1, 1) == "\n") && (strpos($data, ' it_debug::backtrace(array('levels' => $levels, 'skipfiles' => "_html\\.class"))) + $attr; + + $result .= "<$name"; # add attributes. If $value === true, use key only ( instead of for old html, for xhtml style) foreach($attr as $key => $value) @@ -279,9 +283,6 @@ function _tag($name, $args) else $result .= " />$newline"; - if ($levels = intval($GLOBALS['debug_srclines'])) - $result = "" . $result; # Hack: Filter it_html and derived classes - return $result; } -- cgit v1.2.3