# How to avoid space removal in docstrings?

**URL:** <https://discourse.julialang.org/t/how-to-avoid-space-removal-in-docstrings/10353>\
**Category:** General Usage\
**Created:** [April 15, 2018, 5:34pm UTC](https://discourse.julialang.org/t/how-to-avoid-space-removal-in-docstrings/10353 "2018-04-15T17:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [April 15, 2018, 5:34pm UTC](https://discourse.julialang.org/t/how-to-avoid-space-removal-in-docstrings/10353/1 "2018-04-15T17:34:10Z")

</div>

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?

```julia
"""
///++++++++++++++++++++++++++++++++++
///+ +
///+ + |
///+ + |
///++++++++++++++++++++++++++++++++++ v

"""
function f()
    nothing
end

```

```julia
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

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [April 15, 2018, 5:51pm UTC](https://discourse.julialang.org/t/how-to-avoid-space-removal-in-docstrings/10353/2 "2018-04-15T17:51:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [April 15, 2018, 5:53pm UTC](https://discourse.julialang.org/t/how-to-avoid-space-removal-in-docstrings/10353/3 "2018-04-15T17:53:50Z")

</div>

Awesome thanks!
