How to avoid space removal in docstrings?

I am trying to add the following docstring to a function, but when I call help, all the spaces get removed and the art collapses, any idea how to get this right?

"""
///++++++++++++++++++++++++++++++++++
///+                                +
///+                                + |
///+                                + |
///++++++++++++++++++++++++++++++++++ v

"""
function f()
    nothing
end
julia> begin
           """
       ///++++++++++++++++++++++++++++++++++
       ///+                                +
       ///+                                + |
       ///+                                + |
       ///++++++++++++++++++++++++++++++++++ v

       """
       function f()
           nothing
       end
       end
f

help?> f
search: fd for fma fld fft full fld1 find filt fill fft! fdio frexp foldr foldl flush floor float first findn filt!

  ///++++++++++++++++++++++++++++++++++ ///+ + ///+ + | ///+ + | ///++++++++++++++++++++++++++++++++++ v

Put it inside a code fence, i.e. triple backticks. Docstrings go through Markdown.parse which indeed does not keep whitespace.

6 Likes

Awesome thanks!