Snippet "Copy file contents" should copy content without tick-marks?
Summary
When willing to copy a Snippet's content, one is supposed to click "Copy file contents" button on the Snippet view. However, instead of directly copying the content, it gets wrapped into the back tick-marks as markdown representation of the snippet. I'm not sure this is desirable as I personally, usually end up clicking "Open raw" and copy the content there instead to avoid manually cleaning the copied content.
Steps to reproduce
- Open a snippet
- Click "Copy file contents" button
- Paste it somewhere (maybe the comment field below the snippet)
- Watch the content being transformed into something like:
```javascript
// Snippet content goes only here
```
Example Project
Any project
What is the current bug behavior?
The content is processed (?) to include Markdown's back tick-marks
What is the expected correct behavior?
"Copy file contents" should do exactly that: copy the file's content without processing it
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
/cc @mvanremmerden