Make TextWrap.jl respect newlines coming from user

This commit is contained in:
Thomas A. Christensen II 2022-02-01 18:41:02 -06:00
parent 3d2f86d275
commit 28f98c346e
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -162,7 +162,7 @@ function cowmoo(message::AbstractString, mode; kwargs...)
thoughts = "\\" thoughts = "\\"
end 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) speechbubble = balloon(wrapped_message)
return string(speechbubble, cow(eyes=eyes, tongue=tongue, thoughts=thoughts)) return string(speechbubble, cow(eyes=eyes, tongue=tongue, thoughts=thoughts))