Copy/paste code from diff to code block includes extra blank lines

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: n/a

      Steps to Reproduce

      1. Go to code diff on any pull request
      2. Highlight multiple lines of code and copy to clipboard (Mac: Cmd+C)
      3. Paste clipboard content (code block in comment, IDE, ...etc)

      Expected Results

      Code block is pasted in the same format it was copied in.

      Example: 

      const test = (x) => {    
          console.log(x);    
          return `x equals: ${x}`;
      }

      Actual Results

      There is an extra line in between every line of code.

      Example:

      const test = (x) => { 
      
          console.log(x); 
      
          return `x equals: ${x}`;
      
      }

      Workaround

      Currently there is no known workaround for this behavior. User has to manually edit the code block to remove the extra lines.

              Assignee:
              Ellie Matsusaka Sherwood
              Reporter:
              Ellie Matsusaka Sherwood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: