Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline text doesn't format correctly #4

Open
tas50 opened this issue Oct 1, 2014 · 2 comments
Open

Multiline text doesn't format correctly #4

tas50 opened this issue Oct 1, 2014 · 2 comments

Comments

@tas50
Copy link

tas50 commented Oct 1, 2014

First off I want to say this gem is awesome. It's a ton of fun and I'd really love to get some nice multi-line motd action going on via Chef on my servers. Unfortunately the text doesn't seem to format quite right with newlines. Any chance it would be simple to add some parsing for multiline text?

irb(main):006:0> puts Cow.new.say("Fun text\nOften spans lines")
 ____________________________
< Fun text
Often spans lines >
 ----------------------------
      \   ^__^
       \  (oo)\_______
          (__)\       )\/\
              ||----w |
              ||     ||
@PatrickTulskie
Copy link
Owner

Hmm. It does handle text wrapping automatically but I've never had to handle cases with line breaks already in the text. Shouldn't be too hard to implement.

@dbwest
Copy link

dbwest commented Jun 23, 2017

I need this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants