Skip to content

Commit

Permalink
When copy summary, trim and add more space (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnocapybara authored Nov 24, 2023
1 parent ee17ff1 commit dff4515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/summarize_result.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ async function setup() {
}

try {
await navigator.clipboard.writeText(summaryTextContents);
const summaryToCopy = summaryTextContents.trim().replaceAll('\n', '\n\n');
await navigator.clipboard.writeText(summaryToCopy);

copySummaryElement.innerText = 'Copied!';

Expand Down

0 comments on commit dff4515

Please sign in to comment.