Skip to content

Commit 3c92d8e

Browse files
Add a newline before the last quotation mark in copy curl (#8561) (#8566)
(cherry picked from commit 202d496) Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent cb696fa commit 3c92d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/copy-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function addCurl(textToCopy) {
6262
result += path + "\"";
6363

6464
if (body.length > 0) {
65-
result += " -H 'Content-Type: application/json' -d'\n" + body + "'";
65+
result += " -H 'Content-Type: application/json' -d'\n" + body + "\n'";
6666
}
6767

6868
return result;

0 commit comments

Comments
 (0)