Use correct linefeed.
authorlain <lain@soykaf.club>
Sat, 31 Mar 2018 19:14:33 +0000 (21:14 +0200)
committerlain <lain@soykaf.club>
Sat, 31 Mar 2018 19:14:33 +0000 (21:14 +0200)
lib/pleroma/gopher/server.ex

index 5b714be6ae879373689c34ac7b14c2aa6c49652d..cfce4c05c8c4b078fe9cf7966071d32730f269e1 100644 (file)
@@ -82,7 +82,7 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
 
       link("Post ##{activity.id} by #{user.nickname}", "/notices/#{activity.id}") <>
         info("#{like_count} likes, #{announcement_count} repeats") <>
-        "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "<br>", "\n")))
+        "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "<br>", "\r")))
     end)
     |> Enum.join("\r\n")
   end