Correctly handle tab indentation
bug #834 Correctly handle tab indentation (ceeram)

This PR was squashed before being merged into the 1.4-dev branch (closes #834).

Discussion
----------

Correctly handle tab indentation

Fixes #833

Commits
-------

9bf0d3e Correctly handle tab indentation