diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php
index ae8d61aa..ca2c3d41 100644
--- a/adminer/sql.inc.php
+++ b/adminer/sql.inc.php
@@ -182,7 +182,7 @@ if (!$error && $_POST) {
}
echo ($warnings ? "
\n";
+ echo "
\n";
select($explain, $connection2, $orgtables);
echo "
\n";
}
diff --git a/adminer/static/default.css b/adminer/static/default.css
index 5ab148ef..53c896e3 100644
--- a/adminer/static/default.css
+++ b/adminer/static/default.css
@@ -56,6 +56,7 @@ input.wayoff { left: -1000px; position: absolute; }
.view { font-style: italic; }
.active { font-weight: bold; }
.sqlarea { width: 98%; }
+.explain { white-space: pre; }
.icon { width: 18px; height: 18px; background-color: navy; }
.icon:hover { background-color: red; }
.size { width: 6ex; }
diff --git a/changes.txt b/changes.txt
index 581cb09c..aea1fcf4 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,4 +1,5 @@
Adminer 4.16.0-dev:
+PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
Oracle: Include tables granted by other user
Adminer 4.15.0: