e2nIEE / pandapower-homepage

Home of the pandapower Website
https://www.pandapower.org/
2 stars 6 forks source link

leading whitespace in code examples #3

Open derrickoswald opened 4 years ago

derrickoswald commented 4 years ago

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 commented 4 months ago

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