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

leading whitespace in code examples #3

Open
derrickoswald opened this issue Dec 25, 2019 · 1 comment
Open

leading whitespace in code examples #3

derrickoswald opened this issue Dec 25, 2019 · 1 comment

Comments

@derrickoswald
Copy link

Many of the code examples have spurious leading white-space, making copy-paste more difficult than it needs to be.

For example, selecting the first code example (hard to see because it's black on dark grey) selects the text " pip install pandapower" - note the leading space:
withspace

By adding the CSS white-space property:

code {white-space:pre-line;}

the selection is reduced to just the text:
withoutspace

For Python, which is indentation sensitive this can be a problem. I don't believe this adversely affects any of the examples, but makes it nicer for people to use your examples in a simplified workflow.

Unfortunately, I can't suggest how to do this change with the "Minimal Mistakes Jekyll Theme" currently in use, there is no obvious CSS file to add it to.

@KS-HTK
Copy link
Contributor

KS-HTK commented Jul 3, 2024

This could be fixed by changing the css theme. But the better fix would be to actually fix the Markdown file that includes these whitespaces. See start.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants