fredrikekre/Runic.jl

Runic indents docstrings strangely

Closed this issue · 1 comments

Hi, I noticed this strange behavior of Runic.jl when indenting a docstring:

➜  tmp cat test.jl
module A
module B
"""
My documentation
"""
function foo end
end
end
➜  tmp runic -c --diff test.jl
Checking `test.jl` ........................................................... ✖
diff --git a/test.jl b/test.jl
index abd6851..07c7dd5 100644
--- a/test.jl
+++ b/test.jl
@@ -1,8 +1,8 @@
 module A
 module B
-"""
+    """
 My documentation
 """
-function foo end
+    function foo end
 end
 end

Thanks for the report. This has been a potential bug in the back of my mind for a time.

I suspect this isnt specific to docstrings but to all multiline strings.