aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-07-31 13:27:38 +0200
committerRoger Braun <roger@rogerbraun.net>2017-07-31 13:27:38 +0200
commit00b722430fd808d92ba18c99a1af21e9f622c2fb (patch)
tree2b835c3c5db9948b737161f659f3041b8dfe8d5c /lib
parent19e8421947472eb2207caa299bc4bf5947ce3cca (diff)
downloadpleroma-00b722430fd808d92ba18c99a1af21e9f622c2fb.tar.gz
Revert "Close br tags."
This reverts commit 2eba8e74ccf2de0ad65b213bb166917c32db9d68.
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 7f305c863..2c3507dfb 100644
--- a/lib/pleroma/web/twitter_api/utils.ex
+++ b/lib/pleroma/web/twitter_api/utils.ex
@@ -15,13 +15,13 @@ defmodule Pleroma.Web.TwitterAPI.Utils do
"<a href=\"#{URI.encode(href)}\" class='attachment'>#{Path.basename(href)}</a>"
_ -> ""
end)
- Enum.join([text | attachment_text], "<br />\n")
+ Enum.join([text | attachment_text], "<br>\n")
end
def format_input(text, mentions) do
HtmlSanitizeEx.strip_tags(text)
|> Formatter.linkify
- |> String.replace("\n", "<br />\n")
+ |> String.replace("\n", "<br>\n")
|> add_user_links(mentions)
end