From: x2000habouzit Date: Fri, 20 Feb 2004 11:23:12 +0000 (+0000) Subject: c'est plus joli comme ca X-Git-Tag: xorg/old~1845 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b6f1ba8b8ea4f1936017f98cd8fcdab345016c70;p=platal.git c'est plus joli comme ca --- diff --git a/templates/database-debug.tpl b/templates/database-debug.tpl index 9c165a6..e0e2e32 100644 --- a/templates/database-debug.tpl +++ b/templates/database-debug.tpl @@ -4,11 +4,18 @@
- + {if $query.error} - + {/if}
QUERY:
{$query.query|nl2br}
+ QUERY:
+ {$query.query|regex_replace:"/(\n|^|$) */":"\n "|replace:" ":" "|nl2br} +
+
ERROR:
{$query.error|nl2br}
+ ERROR:
+ {$query.error|nl2br} +