If its showing fine on the notepad demo, it is more likely to do with your thermal printer not supporting word wrapping.
Have a read of this, it might give you an idea