Make TextWrap.jl respect newlines coming from user

feature/gitea-migration
parent 3d2f86d275
commit 28f98c346e
Signed by: millironx
GPG Key ID: 139C07724802BC5D

@ -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…
Cancel
Save