From: William Pitcock Date: Thu, 10 Jan 2019 03:45:58 +0000 (+0000) Subject: common api: utils: remove newline to
conversion from bare HTML to be consistent... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0bdbd4f968b20a508f9433480c7e358428dc55d7;p=akkoma common api: utils: remove newline to
conversion from bare HTML to be consistent with markdown ok @lanodan --- diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 187e908ce..7e30d224c 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -136,7 +136,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do def format_input(text, mentions, _tags, "text/html") do text |> Formatter.html_escape("text/html") - |> String.replace(~r/\r?\n/, "
") |> (&{[], &1}).() |> Formatter.add_user_links(mentions) |> Formatter.finalize()