From 180f96ec83acc0292b2a56062b6e691defbc6c81 Mon Sep 17 00:00:00 2001 From: Andrii Zubenko Date: Fri, 4 Feb 2022 23:21:02 -0800 Subject: [PATCH] replace single backslash with triple backslash --- test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt b/test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt index d2f2c56c65..ee5986ca6c 100644 --- a/test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt +++ b/test_runner/src/main/kotlin/ftl/reports/HtmlErrorReport.kt @@ -78,5 +78,5 @@ private fun JUnitTest.Case.stackTrace(): String { private fun List.createHtmlReport(): String = readTextResource("inline.html").replace( oldValue = "\"INJECT-DATA-HERE\"", - newValue = "`${Gson().toJson(this)}`" + newValue = "`${Gson().toJson(this).toString().replace("\"", "\\\"")}`" )