VaasuDevanS/cowsay-python

The ascii art is not alignd in Python command line?

Huaweidev opened this issue · 3 comments

I have an issue about cowsay 2.0 in python,the ascii art is not alignd in Python command line. Like the picture below:

  • OS version: Microsoft Windows 10 version 1803
  • Python version:Python 3.7.2
  • cowsay version: cowsay.about() version ---> 2.0

pic_0129210255
pic_0129210307
pic_0129210319

Also cow:

  _______________
< BACKUP DATABASE >
  ===============
                    \
                     \
                       ^__^
                       (oo)\_______
                       (__)\       )\/       ||----w |
                           ||     ||

I downgraded to the original version. Now it should work like a charm..!!
Reinstalling should work..!! Sorry for the late reply..!!

cs01 commented

This was from a change I pushed to PyPI. @VaasuDevanS reverted it back to v1.0 (thanks! 😄). I have pushed an update to PyPI (v 2.0.3) and also created a Pull Request with the changes.

The cause of the problem is that my text editor trims trailing whitespace when I save, and for some reason this messes up the display of the characters. Ideally this would somehow be fixed in the source code. For now I just turned that setting off and made the change I needed to make.