diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-26 18:15:51 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-26 18:23:06 +0300 |
commit | 2c954117376f3eace3288041bdd1bcc9bd2432b0 (patch) | |
tree | 03343f613178c6cb6b445d7449b7757fea1ecd7e /app/assets/javascripts/lib | |
parent | 4d6ed39b49775267759ae4e0ce454418d211859b (diff) |
Fixed multi-line markdown in issue edit form
Closes #34318
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/text_utility.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js index 601d01e1be1..021f936a4fa 100644 --- a/app/assets/javascripts/lib/utils/text_utility.js +++ b/app/assets/javascripts/lib/utils/text_utility.js @@ -94,8 +94,8 @@ gl.text.insertText = function(textArea, text, tag, blockTag, selected, wrap) { startChar = !wrap && !currentLineEmpty && textArea.selectionStart > 0 ? '\n' : ''; - if (selectedSplit.length > 1 && (!wrap || (blockTag != null))) { - if (blockTag != null) { + if (selectedSplit.length > 1 && (!wrap || (blockTag != null && blockTag !== ''))) { + if (blockTag != null && blockTag !== '') { insertText = this.blockTagText(text, textArea, blockTag, selected); } else { insertText = selectedSplit.map(function(val) { |