Skip to content

Commit

Permalink
Add a newline before the last quotation mark in copy curl (#8561) (#8573
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 202d496)

Signed-off-by: Fanit Kolchina <[email protected]>
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>
  • Loading branch information
1 parent bec022d commit 1cb7d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/copy-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cb7d84

Please sign in to comment.