diff --git a/README.md b/README.md index 3834e5a..b3e8b56 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ julia> cowsay("He mooed we must fight\nEscape or we'll die\nCows gathered around || || ``` -[Julia REPL]: https://docs.julialang.org/en/v1/manual/getting-started/ +[julia repl]: https://docs.julialang.org/en/v1/manual/getting-started/ [pkg mode]: https://docs.julialang.org/en/v1/stdlib/Pkg/ [the documentation]: https://millironx.com/Cowsay.jl/stable -[unexported Cowfiles]: https://millironx.com/Cowsay.jl/stable/cows/ +[unexported cowfiles]: https://millironx.com/Cowsay.jl/stable/cows/ diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 810b948..de918e2 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -166,7 +166,7 @@ function cowmoo(message::AbstractString, mode; kwargs...) eyes, tongue = construct_face!(eyes, tongue; kwargs...) # Default to 'say' mode - if mode ==:think + if mode == :think balloon = thinkballoon thoughts = "o" else @@ -284,7 +284,7 @@ function sayballoon(message::AbstractString) " \\\n" ) if nlines > 2 - for i=2:nlines-1 + for i = 2:nlines-1 balloon = string( balloon, "| ", @@ -321,25 +321,25 @@ function thinkballoon(message::AbstractString) linelength = max(length.(messagelines)...) paddinglength = linelength + 2 - balloon = string( - " ", - repeat("_", paddinglength), - "\n" - ) - for i in 1:nlines - balloon = string( - balloon, - "( ", - rpad(messagelines[i], linelength), - " )\n" - ) - end #for + balloon = string( + " ", + repeat("_", paddinglength), + "\n" + ) + for i in 1:nlines balloon = string( balloon, - " ", - repeat("-", paddinglength), - "\n" + "( ", + rpad(messagelines[i], linelength), + " )\n" ) + end #for + balloon = string( + balloon, + " ", + repeat("-", paddinglength), + "\n" + ) return balloon end #function