Skip to content

leading whitespace in code examples #3

@derrickoswald

Description

@derrickoswald

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions