From 96c6d0bf86b8c38b1db04dc6943e2b6aafc9a7a6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 17 Oct 2024 14:17:34 +0000 Subject: [PATCH] Add a newline before the last quotation mark in copy curl (#8561) Signed-off-by: Fanit Kolchina (cherry picked from commit 202d4962196530ad043176292224962c51d644f4) Signed-off-by: github-actions[bot] --- assets/js/copy-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/copy-button.js b/assets/js/copy-button.js index c26cedfd1c..cb784f07d7 100644 --- a/assets/js/copy-button.js +++ b/assets/js/copy-button.js @@ -62,7 +62,7 @@ function addCurl(textToCopy) { result += path + "\""; if (body.length > 0) { - result += " -H 'Content-Type: application/json' -d'\n" + body + "'"; + result += " -H 'Content-Type: application/json' -d'\n" + body + "\n'"; } return result;