Hi,
The attached patch "beautifies" the complication error page. If multiple
errors were shown, they all appeared on a single line. The patch puts
them on separate lines.
May I commit (with changelog entry, of course)?
- Juraj
Index: System.Web/HttpException.cs
===================================================================
--- System.Web/HttpException.cs (revision 61480)
+++ System.Web/HttpException.cs (working copy)
@@ -175,7 +175,8 @@
builder.AppendFormat ("<h2><font color=\"maroon\"><i>{0}</i></font></h2>\r\n", exc.Title);
builder.AppendFormat ("<b>Description: </b>{0}\r\n<p>\r\n", HtmlEncode (exc.Description));
- builder.AppendFormat ("<b>Error message: </b>{0}\r\n<p>\r\n", HtmlEncode (exc.ErrorMessage));
+ string errorMessage = "<br>" + HtmlEncode (exc.ErrorMessage).Replace ("\n", "<br>");
+ builder.AppendFormat ("<b>Error message: </b>{0}\r\n<p>\r\n", errorMessage);
if (exc.FileName != null)
builder.AppendFormat ("<b>File name: </b> {0}", HtmlEncode (exc.FileName));
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list