about summary refs log tree commit diff
path: root/app/assets/javascripts/components
diff options
context:
space:
mode:
authorRachel H <rainyday@users.noreply.github.com>2017-04-10 12:32:45 -0700
committerEugen <eugen@zeonfederated.com>2017-04-10 21:32:45 +0200
commitf690320fb93ea1a884a292f9e099eb1bc0834b6d (patch)
tree11bb9046b8197e41fef99f29a1431ba26ab64f7c /app/assets/javascripts/components
parent553170b77acea8867cb67deca7c24ce9e16c9c48 (diff)
Keep newlines in xml (#1397)
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r--app/assets/javascripts/components/components/status_content.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx
index 52826ace0..e0cca6113 100644
--- a/app/assets/javascripts/components/components/status_content.jsx
+++ b/app/assets/javascripts/components/components/status_content.jsx
@@ -91,7 +91,7 @@ const StatusContent = React.createClass({
     const { status } = this.props;
     const { hidden } = this.state;
 
-    const content = { __html: emojify(status.get('content')) };
+    const content = { __html: emojify(status.get('content')).replace(/\n/g, '') };
     const spoilerContent = { __html: emojify(escapeTextContentForBrowser(status.get('spoiler_text', ''))) };
     const directionStyle = { direction: 'ltr' };