Skip to content
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

UI/UX: Add newlines to code blocks #9

Open
Mochitto opened this issue May 17, 2023 · 1 comment
Open

UI/UX: Add newlines to code blocks #9

Mochitto opened this issue May 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Mochitto
Copy link
Owner

Mochitto commented May 17, 2023

As of now, code blocks use display: block on the spans that represent a line.
This means that when you are copying from the code-block, the text will not have newlines, returning the code as a single line.

Possible solutions:

  1. Using a block element instead of spans. This could be recognized as a block that has a newline after it when copying.
  2. Adding invisible <br>. Those should be recognized as newlines when copying.
@Mochitto Mochitto added the bug Something isn't working label May 17, 2023
@t1enneRT
Copy link

t1enneRT commented Nov 3, 2023

Suggestion. Using white-space: pre-wrap; on the code-block should solve this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants