Make TextWrap.jl respect newlines coming from user
This commit is contained in:
parent
3d2f86d275
commit
28f98c346e
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ function cowmoo(message::AbstractString, mode; kwargs...)
|
|||
thoughts = "\\"
|
||||
end
|
||||
|
||||
wrapped_message = !nowrap ? TextWrap.wrap(message, width=wrap) : message
|
||||
wrapped_message = !nowrap ? TextWrap.wrap(message, width=wrap, replace_whitespace=false) : message
|
||||
speechbubble = balloon(wrapped_message)
|
||||
|
||||
return string(speechbubble, cow(eyes=eyes, tongue=tongue, thoughts=thoughts))
|
||||
|
|
Loading…
Reference in a new issue