Skip to content

Commit

Permalink
Issue #221 - add tab to 'Tabs and Spaces' example
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tylerkelly13 authored Oct 26, 2017
1 parent 0be4b0f commit 6435a5e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions episodes/07-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,11 @@ it *always* means that there is a problem with how your code is indented.
> the first two lines are using a tab for indentation,
> while the third line uses four spaces:
>
> ~~~
> def some_function():
> msg = "hello, world!"
> print(msg)
> return msg
> ~~~
> <div class="python highlighter-rouge"><div class="highlight"><pre class="highlight"><code>def some_function():
> msg = "hello, world!"
> print(msg)
>&#009;return msg
></code></pre></div> </div>
> {: .python}
>
> ~~~
Expand Down

0 comments on commit 6435a5e

Please sign in to comment.