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
1 changed files with 2 additions and 2 deletions

View File

@ -74,13 +74,13 @@ defp print_suggestions(_file, ""), do: nil
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