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

Incorrect indentation in rendered code examples #994

Open
edgar-bonet opened this issue Oct 15, 2024 · 0 comments
Open

Incorrect indentation in rendered code examples #994

edgar-bonet opened this issue Oct 15, 2024 · 0 comments

Comments

@edgar-bonet
Copy link
Contributor

On the rendered documentation, all the code examples have an extra indentation of four spaces, in all the lines but the first one. This spurious indentation is only present in the rendered version.

For example, the example code for digitalRead(), in source form, starts with:

int ledPin = 13;  // LED connected to digital pin 13
int inPin = 7;    // pushbutton connected to digital pin 7
int val = 0;      // variable to store the read value

whereas the rendered version starts with:

int ledPin = 13;  // LED connected to digital pin 13
    int inPin = 7;    // pushbutton connected to digital pin 7
    int val = 0;      // variable to store the read value

This makes the indentation inconsistent, the code harder to read, and increases the risk of the code HTML element overflowing to the right in small browser windows.

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

1 participant