From 48f9df2391557db6a9f9dae37b9d39d6cd5f612a Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 18 May 2017 16:41:16 +0200 Subject: Keep newlines around. --- lib/pleroma/web/twitter_api/utils.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pleroma/web/twitter_api/utils.ex b/lib/pleroma/web/twitter_api/utils.ex index b7078b9c6..82e3620f2 100644 --- a/lib/pleroma/web/twitter_api/utils.ex +++ b/lib/pleroma/web/twitter_api/utils.ex @@ -14,13 +14,13 @@ defmodule Pleroma.Web.TwitterAPI.Utils do "#{Path.basename(href)}" _ -> "" end) - Enum.join([text | attachment_text], "
") + Enum.join([text | attachment_text], "
\n") end def format_input(text, mentions) do HtmlSanitizeEx.strip_tags(text) |> Formatter.linkify - |> String.replace("\n", "
") + |> String.replace("\n", "
\n") |> add_user_links(mentions) end -- cgit v1.2.3