diff --git a/templates/default/error.php b/templates/default/error.php
index 1c9a8a8c7d680c16b1a7f9b66791ce3488f7d579..64e100315e694cc516ec50660e75c92012abfc21 100644
--- a/templates/default/error.php
+++ b/templates/default/error.php
@@ -38,9 +38,8 @@ if (array_key_exists('showerrors', $this->data) && $this->data['showerrors']) {
 		
 		<div style="border: 1px solid #eee; padding: 1em; font-size: x-small">
 			<p style="margin: 1px"><?php echo htmlentities($this->data['exceptionmsg']); ?></p>
-			<div style=" padding: 1em; font-family: monospace; ">
-				<?php echo htmlentities($this->data['exceptiontrace']); ?>
-			</div>
+			<pre style=" padding: 1em; font-family: monospace; "><?php echo htmlentities($this->data['exceptiontrace']); ?>
+			</pre>
 		</div>
 <?php
 }