From 9b6ba05c5e85d5c4c147ee0e1051e58af0ebbcb1 Mon Sep 17 00:00:00 2001 From: Matthew Thomas Date: Sat, 2 Nov 2024 19:01:14 +0000 Subject: [PATCH] chore: remove empty space --- src/views/failed-folded.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 += `
❌ ${testName} -

Message:

${messageHtml}

Trace:

${traceHtml}