From 98436ae0daa936e4ff8fab8c31ba99f9e081e8fa Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:18:19 +0000 Subject: [PATCH] Add a newline before the last quotation mark in copy curl (#8561) (#8571) --- 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;