Skip to content

Commit

Permalink
Merge pull request #31852 from Expensify/revert-31619-fix-code-paste-bug
Browse files Browse the repository at this point in the history
[CP Stag] Revert "Fix 29806: code paste bug on private note"

(cherry picked from commit 3363c35)
  • Loading branch information
luacmartins authored and OSBotify committed Nov 24, 2023
1 parent 0fe535a commit da29b40
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 da29b40

Please sign in to comment.