cowsay
cowsay copied to clipboard
Word wrap
I use you library as demo for jQuery Terminal and it seems that it don't wrap word properly,
type this:
echo There is in the worst of fortunes the best change of a happy ending. | say
the output is:
__________________________________________
/ There is in the worst of fortunes the be \
\ st change of a happy ending. /
------------------------------------------
\ ^__^
\ (oO)\_______
(__)\ )\/\
||----w |
|| ||
but native cowsay prints:
_______________________________________
/ There is in the worst of fortunes the \
\ best change of a happy ending. /
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
As you can see best is never broken into two words. If you will accept PR I can check if I can fix this.
It's been almost a year and no even a single comment. Do you accept PR?