diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-10 16:51:59 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-08-12 11:19:42 -0700 |
commit | e02883baf2fd2a0cfc21bd557bc0ecc69afd707c (patch) | |
tree | c874014e674764172e6caf73a34886ce7a020db4 /web/react/utils | |
parent | 23a331f933af834ed1a26806f087e61ca6ddd93a (diff) | |
download | chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.gz chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.tar.bz2 chat-e02883baf2fd2a0cfc21bd557bc0ecc69afd707c.zip |
Cosmetic refactoring of post_body.jsx
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
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}/>); } } |