rasbt/python_reference

Bad generated html

hellman opened this issue · 1 comments

On http://nbviewer.ipython.org/github/rasbt/python_reference/blob/master/not_so_obvious_python_stuff.ipynb an anchor is closed in wrong place:

Chapter "Only the first clause of generators is evaluated immediately" is highlighted with the code altogether on mouse over.

See screenshot:
http://h.ctf.su/img/tmp.79rYIPXEi7Ua.png

Also chapter "Assigning types to variables as values" is the only chapter title highlighted on mouse over.

Checked on Chrome 34.0.1847.132 and firefox (linux).

PS: Wanted to patch it myself, but .ipynb syntax is mad. Also it seems HTML generated isn't good at all:

...
<a name="variable_types"></p>
</div>
</div>
</div>
...

Thanks a lot, I really forgot to close the anchor tag via here... unfortunately, the IPython notebook was too forgiving so that I didn't notice...but it is fixed now :)