We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431d6ad commit 066af42Copy full SHA for 066af42
lib/ex_doc/formatter/markdown/templates.ex
@@ -151,7 +151,7 @@ defmodule ExDoc.Formatter.MARKDOWN.Templates do
151
@spec synopsis(nil) :: nil
152
def synopsis(doc) when is_binary(doc) do
153
case :binary.split(doc, "\n\n") do
154
- [left, _] -> String.trim_trailing(left, ": ") <> "\n\n"
+ [left, _] -> String.trim_trailing(left) |> String.trim_trailing(left, ":") <> "\n\n"
155
[all] -> all
156
end
157
0 commit comments