Using <TAB> in $code blocks causes IndentationError

Bug #539805 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
web.py
New
Undecided
Unassigned

Bug Description

When using <TAB> to indent a $code block, webpy throws an IndentationError.

I'm attaching a file to reproduce this: start bug.py and request localhost:8080 in your webbrowser.

It should throw the following exception:
<type 'exceptions.IndentationError'> at /
unexpected indent Template traceback: File '<template>', line 7 None (<template>, line 7)

When changing the TAB in line 7 (which is actually line 11 in the file) to be indented using space (1 or 4 does not matter), it gets parsed as expected.

I'm using Git HEAD.

Revision history for this message
Daniel Hahler (blueyed) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.