Skip to content

Commit

Permalink
Revert "Fix 29806: code paste bug on private note"
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins authored Nov 24, 2023
1 parent e355608 commit 32338b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ export default [
Clipboard.setString(logMessage);
} else if (content) {
const parser = new ExpensiMark();
const markdown = parser.htmlToMarkdown(content);
if (!Clipboard.canSetHtml()) {
Clipboard.setString(markdown);
Clipboard.setString(parser.htmlToMarkdown(content));
} else {
Clipboard.setHtml(content, markdown);
const plainText = parser.htmlToText(content);
Clipboard.setHtml(content, plainText);
}
}
}
Expand Down

0 comments on commit 32338b2

Please sign in to comment.