c'est plus joli comme ca
authorx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 11:23:12 +0000 (11:23 +0000)
committerx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 11:23:12 +0000 (11:23 +0000)
templates/database-debug.tpl

index 9c165a6..e0e2e32 100644 (file)
@@ -4,11 +4,18 @@
 <br />
 <table class="bicol" style="width: 75%; font-family: fixed">
   <tr class="impair">
-    <td><strong>QUERY:</strong><br />{$query.query|nl2br}</td>
+    <td>
+      <strong>QUERY:</strong><br />
+      {$query.query|regex_replace:"/(\n|^|$) */":"\n  "|replace:" ":"&nbsp"|nl2br}
+      <br />
+    </td>
   </tr>
   {if $query.error}
   <tr>
-    <td><strong>ERROR:</strong><br />{$query.error|nl2br}</td>
+    <td>
+      <strong>ERROR:</strong><br />
+      {$query.error|nl2br}
+    </td>
   </tr>
   {/if}
 </table>