markdown.ex: \n\n on >1 suggestions, 2-spaces on one
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 20:33:32 +0000 (22:33 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 21:05:27 +0000 (23:05 +0200)
lib/pleroma/docs/markdown.ex

index fc6389064b4c558b34a0a59482e8a2c06c0e20b5..280fe030965241b721ebd04d8bdf92e902ed6ec9 100644 (file)
@@ -74,13 +74,13 @@ defmodule Pleroma.Docs.Markdown do
 
   defp print_suggestions(file, suggestions) do
     if length(suggestions) > 1 do
-      IO.write(file, "Suggestions:\n")
+      IO.write(file, "\n\nSuggestions:\n")
 
       for suggestion <- suggestions do
         print_suggestion(file, suggestion, true)
       end
     else
-      IO.write(file, "Suggestion:\n")
+      IO.write(file, "  Suggestion: ")
 
       print_suggestion(file, List.first(suggestions))
     end