markdown.ex: \n\n on >1 suggestions, 2-spaces on one

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-09-17 22:33:32 +02:00
parent d6182a3c8f
commit d2097fd0f5
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View 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