From da51e5767b00ddb9c8e37e8078545927f0e0b517 Mon Sep 17 00:00:00 2001 From: yannisgu Date: Fri, 6 Feb 2015 08:38:14 +0100 Subject: [PATCH] The error message should be placed in a pre tag The error message should be placed in a pre tag since it normally contains line breaks and expects monospacing for ASCII-style graphs. --- NUnit HTML Report Generator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NUnit HTML Report Generator/Program.cs b/NUnit HTML Report Generator/Program.cs index b6b474e..70da95f 100644 --- a/NUnit HTML Report Generator/Program.cs +++ b/NUnit HTML Report Generator/Program.cs @@ -519,7 +519,7 @@ private static string GenerateFixtureModal(XElement fixture, string modalId, str // Add failure messages if available if (testCase.Elements("failure").Count() == 1) { - html.AppendLine(string.Format("
Message: {0}
", testCase.Element("failure").Element("message").Value)); + html.AppendLine(string.Format("
Message:
{0}
", testCase.Element("failure").Element("message").Value)); html.AppendLine(string.Format("
Stack Trace:
{0}
", testCase.Element("failure").Element("stack-trace").Value)); }