summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/utils.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index bbe5003bc..2136accb4 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -634,6 +634,8 @@ module.exports.textToJsx = function(textToChange, options) {
}
if (!useTextFormatting && i !== lines.length - 1) {
inner.push(<br key={'br_' + i}/>);
+ } else if (useTextFormatting && !codeFlag && i < lines.length - 2) {
+ inner.push(<br key={'br_' + i}/>);
}
}