From d73e773e80e4f7888357c53a8a8fdecd07e28a69 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Tue, 21 Sep 2004 16:26:19 +0000
Subject: [PATCH] =?UTF-8?q?d=C3=A9colaration=20des=20num=C3=A9ros=20de=20l?=
 =?UTF-8?q?ignes=20(evite=20les=20questions=20infond=C3=A9es)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 inc-admin.php3 | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/inc-admin.php3 b/inc-admin.php3
index ce88a9052a..829c9c17a7 100644
--- a/inc-admin.php3
+++ b/inc-admin.php3
@@ -369,13 +369,19 @@ function debug_dumpfile ($texte) {
 	}
 
 	if ($texte) {
-	  $tableau = explode("\n", $texte);
-	  $format = "%0".strlen(count($tableau))."d";
-	  $texte = '';
-	  foreach ($tableau as $ligne)
-	    $texte .= "\n".sprintf($format, ++$i).'. '.$ligne;
 	  echo "<div id=\"debug_boucle\"><fieldset><legend>".$GLOBALS['debug_affiche']."</legend>";
+	  ob_start();
 	  highlight_string($texte);
+	  $s = ob_get_contents();
+	  ob_end_clean();
+	  $tableau = explode("<br />", $s);
+	  $format = "<br>\n<span style='color: black'>%0".
+	    strlen(count($tableau)).
+	    "d </span>";
+	  $i=0;
+	  foreach ($tableau as $ligne) echo $ligne, sprintf($format, ++$i);
+
+
 	  echo "</fieldset></div>";
 	}
 	echo "\n</div></body>";
-- 
GitLab