cowsay icon indicating copy to clipboard operation
cowsay copied to clipboard

Word wrap

Open jcubic opened this issue 5 years ago • 4 comments

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.

jcubic avatar Jul 21 '20 10:07 jcubic

It's been almost a year and no even a single comment. Do you accept PR?

jcubic avatar Jun 10 '21 13:06 jcubic