Skip to content

Commit

Permalink
Merge pull request #642 from mathjax/issue2574
Browse files Browse the repository at this point in the history
Trim TeX and annotations before copying to clipboard.  (mathjax/MathJax#2574)
  • Loading branch information
dpvc authored Mar 19, 2021
2 parents 08df2ec + 7e57be7 commit b8e25a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/ui/menu/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -957,14 +957,14 @@ export class Menu {
* Copy the original form to the clipboard
*/
protected copyOriginal() {
this.copyToClipboard(this.menu.mathItem.math);
this.copyToClipboard(this.menu.mathItem.math.trim());
}

/**
* Copy the original annotation text to the clipboard
*/
public copyAnnotation() {
this.copyToClipboard(this.menu.annotation);
this.copyToClipboard(this.menu.annotation.trim());
}

/**
Expand Down

0 comments on commit b8e25a6

Please sign in to comment.