diff --git a/src/views/failed-folded.ts b/src/views/failed-folded.ts index e87dea1f..6916c9e5 100644 --- a/src/views/failed-folded.ts +++ b/src/views/failed-folded.ts @@ -21,15 +21,14 @@ export function generateFailedFoldedTable(tests: CtrfTest[], useSuiteName: boole
` failedTests.forEach((test) => { const testName = getTestName(test, useSuiteName) - const messageHtml = convert.toHtml(test.message || 'No message available') - const traceHtml = convert.toHtml(test.trace || 'No trace available') + const messageHtml = convert.toHtml((test.message || 'No message available').replace(/\n{2,}/g, '\n')) + const traceHtml = convert.toHtml((test.trace || 'No trace available').replace(/\n{2,}/g, '\n')) tableHtml += `Message:
${messageHtml}
Trace:
${traceHtml}