-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
'Tabs and Spaces' example does not actually include tabs #221
Comments
Ignore conduct.md and contributing.md. No, really.
Yeah, this is hard to fix given that we're using Markdown... |
…o gh-pages * 'patch-1' of https://github.com/tylerkelly13/python-novice-inflammation: Issue #221 - add tab to 'Tabs and Spaces' example
I typed out the code example as described in Jupyter, and cannot reproduce the Either we revise the example to reproduce the error (I tried some random combinations of tabs/spaces, and couldn't get it), or remove it and just note that it's not good practice to mix tabs and spaces? From the Python 3 docs:
|
Hey @yeemey! |
Hi @maxim-belkin, It's ~line 182 in my forked repo with 07-errors.md. |
You have to copy/paste the example, not type it out manually. |
And actually this issue should be fixed now as I did change the HTML to have explicit tabs in there; I just copy/pasted and it worked for me. |
Based on info from this site: https://daringfireball.net/projects/markdown/syntax#html I have replaced the markdown code block with html code (copied the html source from http://swcarpentry.github.io/python-novice-inflammation/07-errors/ and added a tab). The indentation has been increased on all lines as html tabs are 8 characters wide, not 4 and it is hard to change the html tabs to 4 characters.
…o gh-pages * 'patch-1' of https://github.com/tylerkelly13/python-novice-inflammation: Issue #221 - add tab to 'Tabs and Spaces' example
The "Tabs and Spaces" callout in lesson 7 includes a code example where supposedly "the first two lines are using a tab for indentation, while the third line uses four spaces". In fact, all three lines use spaces for indentation.
Someone copying this example would not be able to reproduce the error.
I'm opening an issue rather than just fixing it, because:
The text was updated successfully, but these errors were encountered: