copying code in console snippets ignores line break
See original GitHub issuewhen clicking on console snippets:
https://docs.ploomber.io/en/docs/use-cases/research.html
The contents are copied to the clipboard, but the line break is ignored, causing the clipboard to contain:
pip install ploomberploomber examples -n cookbook/grid -o grid
when it should be:
pip install ploomber
ploomber examples -n cookbook/grid -o grid
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Copy to clipboard with break line - javascript - Stack Overflow
First problem in your code is the $(element).text() jquery text() strips your code from html including the <br> tags. So there is no...
Read more >Pasting code from Stack Overflow to Notepad loses line ...
My workaround is to click "edit" and copy the code out of the text editor there, ... code copied in Internet Explorer pastes...
Read more >Get started debugging JavaScript - Microsoft Edge Development
When you get to the specific line of code you want to pause, use a line-of-code breakpoint. Look at the last line of...
Read more >Prism
Dead simple Include prism.css and prism.js, use proper HTML5 code tags ... inherited so you can only define the language once for multiple...
Read more >HTML Line Break – How to Break a Line with the HTML <br ...
You can insert line breaks in HTML with the <br> tag, which is equivalent to a carriage return on a keyboard. Be aware...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@edublancas Sorry, I didn’t understand the problem clearly earlier and maybe spoke too early before looking into the problem😅! I’ve made a PR with the fix now.
I think there should be similar snippets in the master branch.
But feel free to open a PR to the docs branch. I’ll merge it soon anyway.
Just ensure that the changes apply to all similarly looking snippets: