Code block copy removes leading tabs on first line #5075
KiGamji
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment 3 replies
-
This is intended, the text is trimmed. Otherwise there might be trailing new lines |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
When a code block with leading tabs is generated and displayed in the UI, the "Copy code" button does not preserve the tabs on the first line when the code is copied to the clipboard. This causes the pasted code to lose the intended indentation, and differs from how the markdown code block was created.
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions