From 02c1669a4db5b7f87946b1e2de6d2545f305dc70 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 6 Jul 2020 11:14:02 +0100 Subject: [PATCH] Better handle failures inside nested test sections --- util/test/rdtest/testresults.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/test/rdtest/testresults.js b/util/test/rdtest/testresults.js index 6e5917cf9..ba5defeab 100644 --- a/util/test/rdtest/testresults.js +++ b/util/test/rdtest/testresults.js @@ -92,6 +92,11 @@ document.body.onload = function() { html += '
' + htmlEntityEncode(m[2]) + ''; } else if(m[1] == '!-') { html += '
'; + while(indent > 4) + { + indent -= 4; + html += ''; + } } else if(m[1] == '!!') { html += '
' + htmlEntityEncode(m[2]) + '
'; } else if(m[1] == '**') {