Skip to content

Commit

Permalink
don't leave trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jun 27, 2015
1 parent a079cd2 commit 97da3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/genstdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function translate(file)
println(io, sig == nothing ? l : ".. function:: $(sig.code)")
println(io)
for l in split(Markdown.rst(doc), "\n")
println(io, " ", l)
ismatch(r"^\s*$", l) ? println(io) : println(io, " ", l)
end
println(io)
elseif doccing && (startswith(l, " ") || ismatch(r"^\s*$", l))
Expand Down

0 comments on commit 97da3dc

Please sign in to comment.