Clean up text_formatter code with a byte.Buffer
Merge pull request #32 from aarondl/master

Clean up text_formatter code with a byte.Buffer