From 87a68af4c33ccb4c41cd8e664e06a6aa5ae60f26 Mon Sep 17 00:00:00 2001
From: Matthias Mees <mm@yellowled.de>
Date: Mon, 3 Dec 2012 15:39:31 +0100
Subject: [PATCH] More redundant br elements fixed.

---
 include/db/pdo-postgres.inc.php | 4 ++--
 include/db/pdo-sqlite.inc.php   | 4 ++--
 include/db/postgres.inc.php     | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/db/pdo-postgres.inc.php b/include/db/pdo-postgres.inc.php
index c413fbc0..5e735629 100644
--- a/include/db/pdo-postgres.inc.php
+++ b/include/db/pdo-postgres.inc.php
@@ -216,12 +216,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
 
     if (!$serendipity['dbSth']) {
         if (!$expectError && !$serendipity['production']) {
-            print "Error in $sql<br/>\n";
+            print "<span class='msg_error'>Error in $sql</span>";
             print $serendipity['dbConn']->errorInfo() . "<BR/>\n";
             if (function_exists('debug_backtrace')) {
                 highlight_string(var_export(debug_backtrace(), 1));
             }
-            print "<br><code>$sql</code>\n";
+            print "<pre>$sql</pre>\n";
         }
         return $type_map['false'];
     }
diff --git a/include/db/pdo-sqlite.inc.php b/include/db/pdo-sqlite.inc.php
index 3b6c860a..f8865332 100644
--- a/include/db/pdo-sqlite.inc.php
+++ b/include/db/pdo-sqlite.inc.php
@@ -234,12 +234,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
 
     if (!$serendipity['dbSth']) {
         if (!$expectError && !$serendipity['production']) {
-            print "Error in $sql<br/>\n";
+            print "<span class='msg_error'>Error in $sql</span>";
             print $serendipity['dbConn']->errorInfo() . "<BR/>\n";
             if (function_exists('debug_backtrace')) {
                 highlight_string(var_export(debug_backtrace(), 1));
             }
-            print "<br><code>$sql</code>\n";
+            print "<pre>$sql</pre>";
         }
         return $type_map['false'];
     }
diff --git a/include/db/postgres.inc.php b/include/db/postgres.inc.php
index da922706..f15e4062 100644
--- a/include/db/postgres.inc.php
+++ b/include/db/postgres.inc.php
@@ -226,12 +226,12 @@ function &serendipity_db_query($sql, $single = false, $result_type = "both", $re
 
     if (!$serendipity['dbLastResult']) {
         if (!$expectError && !$serendipity['production']) {
-            print "Error in $sql<br/>\n";
+            print "<span class='msg_error'>Error in $sql</span>";
             print pg_last_error($serendipity['dbConn']) . "<BR/>\n";
             if (function_exists('debug_backtrace')) {
                 highlight_string(var_export(debug_backtrace(), 1));
             }
-            print "<br><code>$sql</code>\n";
+            print "<pre>$sql</pre>";
         }
         return $type_map['false'];
     }