-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Copy" in code blocks inject double newlines #7170
Comments
This seems to have been introduced in one of the recent Material releases. Locally, I had I should note that I could only reproduce with the |
Thanks for reporting. Please provide a minimal reproduction, as requested by our bug reporting guidelines. |
Bisecting releases, it works as expected in |
You did 'Fixed empty lines when copying (9.5.18 regression)'. |
I'm in the process of creating a release for this. "9.5.18 regression" means the bug was introduced in 9.5.18 and it worked before, which was confirmed by the OP, saying that downgrading to 9.5.17 fixes the issue. |
Released as part of 9.5.22. |
Thank you @squidfunk ❤️ |
Context
I want to make it easier for folks to copy configuration examples from my documentation page, by using the
copy
feature.Bug description
When clicking the
copy
icon in allcode
blcoks on my documentation site, I get extrablank
newlines in between the content.I initially thought it was due to Annotations in code blocks, but does not seem to be the case.
Manually "drag cursor over text and copy" works fine.
Related links
Reproduction
Click any
copy
icon from myrelated links
section and see that you get double newlinesFor example; the
Generate labels via script
code block:Expected
Actual
Steps to reproduce
copy
iconBrowser
No response
Before submitting
The text was updated successfully, but these errors were encountered: