textile / python-textile

A Python port of Textile, A humane web text generator
Other
68 stars 23 forks source link

IndexError string index out of range on whitespace only string #40

Closed brad closed 7 years ago

brad commented 7 years ago

When I try to process a string that is whitespace only, I get an IndexError:

In [1]: from textile import textile

In [2]: textile(' ')
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)

Ref: https://github.com/textile/python-textile/issues/26

ikirudennis commented 7 years ago

Thanks reporting and fixing this. It'll be pushed to master soon-ish.