isagalaev/elementflow — pull request #5 by klobucar (2012-12-07 07:18:55+00:00)
Title: Fix a crash if you didn't pass something that didn't have a len to IndentingGenerator

This fixes a bug where if you passed an int in the text kwarg to element it would crash. I resolved this by checking if the value passed to the formatter is a basestring, if not make it one as you do that anyways later.

Relevant tests included I think.