markdown.ex: end suggestions list with a newline
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 20:55:29 +0000 (22:55 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 21:05:27 +0000 (23:05 +0200)
Otherwise we end up with suggestion on the same level as the childs

Markdown is a fuckā€¦

lib/pleroma/docs/markdown.ex
mix.exs

index 280fe030965241b721ebd04d8bdf92e902ed6ec9..27be1b095cdef55d674a8c33433e43be0fff6c75 100644 (file)
@@ -79,6 +79,8 @@ defmodule Pleroma.Docs.Markdown do
       for suggestion <- suggestions do
         print_suggestion(file, suggestion, true)
       end
+
+      IO.write(file, "\n")
     else
       IO.write(file, "  Suggestion: ")
 
diff --git a/mix.exs b/mix.exs
index 58d1606d382963dcec01b453826764f9b26a3428..e4fe5adf4f552c8141dcbb3a5d15f073b806ef40 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -174,7 +174,8 @@ defmodule Pleroma.Mixfile do
       "ecto.rollback": ["pleroma.ecto.rollback"],
       "ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
       "ecto.reset": ["ecto.drop", "ecto.setup"],
-      test: ["ecto.create --quiet", "ecto.migrate", "test"]
+      test: ["ecto.create --quiet", "ecto.migrate", "test"],
+      docs: ["pleroma.docs", "docs"]
     ]
   end