From ae5118e04fde07be5c356ee8fb75c5c457621eef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Wed, 3 Dec 2008 08:28:34 +0000
Subject: [PATCH] Preserve line break in error message exception stack trace

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1045 44740490-163a-0410-bde0-09ae8108e29a
---
 templates/default/error.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/templates/default/error.php b/templates/default/error.php
index 1c9a8a8c7..64e100315 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
 }
-- 
GitLab