From 16696de99b0856798c58a887c86a106bf88eae60 Mon Sep 17 00:00:00 2001
From: igoradamenko
Date: Sun, 29 Apr 2018 00:51:14 +0300
Subject: [PATCH] add space between paragraphs in comment snippet
---
web/app/components/comment/comment.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx
index f0fffe20..a257d035 100644
--- a/web/app/components/comment/comment.jsx
+++ b/web/app/components/comment/comment.jsx
@@ -333,7 +333,7 @@ export default class Comment extends Component {
function getTextSnippet(html) {
const LENGTH = 100;
const tmp = document.createElement('div');
- tmp.innerHTML = html;
+ tmp.innerHTML = html.replace('
', ' ');
const result = tmp.innerText || '';
const snippet = result.substr(0, LENGTH);