pwaller/pyfiglet — Issue #7: Error formating text
Author: ericfrederich
Created: 2012-02-14 21:50:29+00:00
State: open

Run the following code and see the following error.

```python
#!/usr/bin/env python

import pyfiglet

fnames = os.listdir('pyfiglet/fonts')
for fname in fnames:
if not fname.endswith('.flf'):
continue
print fname
print pyfiglet.figlet_format('ERROR', font=fname[:-4])
print pyfiglet.figlet_format('Error', font=fname[:-4])
```

File "pyfiglet/__init__.py", line 40, in figlet_format
return fig.renderText(text, **kwargs)
File "pyfiglet/__init__.py", line 444, in renderText
return self.engine.render(text)
File "pyfiglet/__init__.py", line 382, in render
buffer[row] = (' ' * (self.base.width - len(buffer[row]) - 1)) + buffer[row]
IndexError: list index out of range