From 2c8d7d218c4ba359a4b23e38dd3007d4a6b31e32 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Thu, 23 Sep 2004 10:33:14 +0000 Subject: [PATCH] =?UTF-8?q?d=C3=A9calage=20des=20num=C3=A9rotations=20de?= =?UTF-8?q?=20lignes=20dans=20le=20debuger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc-admin.php3 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inc-admin.php3 b/inc-admin.php3 index a34b9148bd..23bf3ba87e 100644 --- a/inc-admin.php3 +++ b/inc-admin.php3 @@ -330,12 +330,15 @@ function debug_dumpfile ($texte) { highlight_string($texte); $s = ob_get_contents(); ob_end_clean(); + if (substr($s,0,6) == '<code>') { $s=substr($s,6); echo '<code>';} $tableau = explode("<br />", $s); - $format = "<br>\n<span style='color: black'>%0". + $format = "<br />\n<span style='color: black'>%0". strlen(count($tableau)). "d </span>"; - $i=0; - foreach ($tableau as $ligne) echo $ligne, sprintf($format, ++$i); + $format10=str_replace('black','pink',$format); + $i=1; + foreach ($tableau as $ligne) + echo sprintf(($i%10) ? $format :$format10, $i++), $ligne ; echo "</fieldset></div>"; -- GitLab