summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-18 16:41:16 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-18 16:41:16 +0200
commit48f9df2391557db6a9f9dae37b9d39d6cd5f612a (patch)
tree9902628481c930e48b003b280516c0bf28260152 /lib
parenta92a9dce94d2a2502750a4a258560283c21e2777 (diff)
downloadpleroma-48f9df2391557db6a9f9dae37b9d39d6cd5f612a.tar.gz
pleroma-48f9df2391557db6a9f9dae37b9d39d6cd5f612a.zip
Keep newlines around.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/twitter_api/utils.ex4
1 files changed, 2 insertions, 2 deletions
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
"<a href='#{href}' class='attachment'>#{Path.basename(href)}</a>"
_ -> ""
end)
- Enum.join([text | attachment_text], "<br>")
+ Enum.join([text | attachment_text], "<br>\n")
end
def format_input(text, mentions) do
HtmlSanitizeEx.strip_tags(text)
|> Formatter.linkify
- |> String.replace("\n", "<br>")
+ |> String.replace("\n", "<br>\n")
|> add_user_links(mentions)
end